]> git.cworth.org Git - apitrace/commitdiff
Ensure WGL visual has depth-stencil buffer.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 9 Apr 2011 15:27:15 +0000 (16:27 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 9 Apr 2011 15:27:15 +0000 (16:27 +0100)
glws_wgl.cpp

index 7e5807146375646500b723ce8f4ac819a2057519..3ac2a6d0b3905095e828b7d8dd2cf3c52c1e9c25 100644 (file)
@@ -90,6 +90,8 @@ public:
         pfd.cRedBits = 1;
         pfd.cGreenBits = 1;
         pfd.cBlueBits = 1;
+        pfd.cDepthBits = 1;
+        pfd.cStencilBits = 1;
         pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL;
         pfd.iLayerType = PFD_MAIN_PLANE;
         pfd.iPixelType = PFD_TYPE_RGBA;