From 49d29a97b15e651ba1f645888f8e7b81fc9071bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 9 Apr 2011 16:27:15 +0100 Subject: [PATCH] Ensure WGL visual has depth-stencil buffer. --- glws_wgl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glws_wgl.cpp b/glws_wgl.cpp index 7e58071..3ac2a6d 100644 --- a/glws_wgl.cpp +++ b/glws_wgl.cpp @@ -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; -- 2.45.2