opengl32: Add wrapper for wglCreateContext.
Signed-off-by: Stefan Riesenberger <stefan.riesenberger@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cf11ddfe41
commit
4285c619a0
|
@ -398,9 +398,9 @@ HDC WINAPI wglGetCurrentDC(void)
|
|||
}
|
||||
|
||||
/***********************************************************************
|
||||
* wglCreateContext (OPENGL32.@)
|
||||
* wgl_create_context wrapper for hooking
|
||||
*/
|
||||
HGLRC WINAPI wglCreateContext(HDC hdc)
|
||||
static HGLRC wgl_create_context(HDC hdc)
|
||||
{
|
||||
HGLRC ret = 0;
|
||||
struct wgl_context *drv_ctx;
|
||||
|
@ -419,6 +419,14 @@ HGLRC WINAPI wglCreateContext(HDC hdc)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* wglCreateContext (OPENGL32.@)
|
||||
*/
|
||||
HGLRC WINAPI wglCreateContext(HDC hdc)
|
||||
{
|
||||
return wgl_create_context(hdc);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* wglGetCurrentContext (OPENGL32.@)
|
||||
*/
|
||||
|
@ -667,7 +675,7 @@ HGLRC WINAPI wglCreateLayerContext(HDC hdc,
|
|||
TRACE("(%p,%d)\n", hdc, iLayerPlane);
|
||||
|
||||
if (iLayerPlane == 0) {
|
||||
return wglCreateContext(hdc);
|
||||
return wgl_create_context(hdc);
|
||||
}
|
||||
FIXME("no handler for layer %d\n", iLayerPlane);
|
||||
|
||||
|
|
Loading…
Reference in New Issue