diff --git a/dlls/gdi32/dibdrv/dc.c b/dlls/gdi32/dibdrv/dc.c index 8b2eb6a7480..0ff4688b170 100644 --- a/dlls/gdi32/dibdrv/dc.c +++ b/dlls/gdi32/dibdrv/dc.c @@ -469,21 +469,6 @@ static BOOL WINAPI dibdrv_wglCopyContext( struct wgl_context *src, struct wgl_co return FALSE; } -/*********************************************************************** - * dibdrv_wglCreateContext - */ -static struct wgl_context * WINAPI dibdrv_wglCreateContext( HDC hdc ) -{ - PIXELFORMATDESCRIPTOR descr; - int format = GetPixelFormat( hdc ); - - if (!format) format = 1; - if (!DescribePixelFormat( hdc, format, sizeof(descr), &descr )) return NULL; - - if (!osmesa_funcs) return NULL; - return osmesa_funcs->create_context( hdc, &descr ); -} - /*********************************************************************** * dibdrv_wglDeleteContext */ @@ -509,6 +494,21 @@ static int WINAPI dibdrv_wglGetPixelFormat( HDC hdc ) return ret; } +/*********************************************************************** + * dibdrv_wglCreateContext + */ +static struct wgl_context * WINAPI dibdrv_wglCreateContext( HDC hdc ) +{ + PIXELFORMATDESCRIPTOR descr; + int format = dibdrv_wglGetPixelFormat( hdc ); + + if (!format) format = 1; + if (!dibdrv_wglDescribePixelFormat( hdc, format, sizeof(descr), &descr )) return NULL; + + if (!osmesa_funcs) return NULL; + return osmesa_funcs->create_context( hdc, &descr ); +} + /*********************************************************************** * dibdrv_wglGetProcAddress */