Commit 536d48b4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdi32: Directly call dib driver functions in dibdrv_wglCreateContext.

parent ac645884
......@@ -470,21 +470,6 @@ static BOOL WINAPI dibdrv_wglCopyContext( struct wgl_context *src, struct wgl_co
}
/***********************************************************************
* 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
*/
static BOOL WINAPI dibdrv_wglDeleteContext( struct wgl_context *context )
......@@ -510,6 +495,21 @@ static int WINAPI dibdrv_wglGetPixelFormat( HDC hdc )
}
/***********************************************************************
* 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
*/
static PROC WINAPI dibdrv_wglGetProcAddress( const char *proc )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment