From 374a7abd658c127fd0620f01cc12f3f9f99ba172 Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Sat, 30 Nov 2002 01:55:59 +0000 Subject: [PATCH] Implement wglCreateLayerContext for layer 0. --- dlls/opengl32/wgl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index ae656082ab0..d717be80290 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -163,7 +163,12 @@ HGLRC WINAPI wglCreateContext(HDC hdc) */ HGLRC WINAPI wglCreateLayerContext(HDC hdc, int iLayerPlane) { - FIXME("(%p,%d): stub !\n", hdc, iLayerPlane); + TRACE("(%p,%d)\n", hdc, iLayerPlane); + + if (iLayerPlane == 0) { + return wglCreateContext(hdc); + } + FIXME(" no handler for layer %d\n", iLayerPlane); return NULL; }