gdi32: Directly call dib driver functions in dibdrv_wglCreateContext.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ac6458844a
commit
536d48b4be
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue