wglCreateLayerContext?
Lionel Ulmer
lionel.ulmer at free.fr
Fri Nov 29 13:54:14 CST 2002
On Fri, Nov 29, 2002 at 04:14:26PM +0000, Mike Hearn wrote:
> Yes, it only calls it with Layer 0. I guess it's just a flexibility
> thing - the functions we use allow us to choose a layer but we never do.
> I guess it could just be a passthrough implementation with a ERR if an
> app ever requires anything other than layer 0?
That's what implemented in the attached patch (we already did a trick like
that for wglSwapLayerBuffers).
Changelog:
Implement wglCreateLayerContext for layer 0
--
Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
Index: dlls/opengl32/wgl.c
===================================================================
RCS file: /home/wine/wine/dlls/opengl32/wgl.c,v
retrieving revision 1.29
diff -u -r1.29 wgl.c
--- dlls/opengl32/wgl.c 4 Nov 2002 23:53:44 -0000 1.29
+++ dlls/opengl32/wgl.c 29 Nov 2002 19:52:42 -0000
@@ -163,7 +163,12 @@
*/
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;
}
More information about the wine-patches
mailing list