From: José Fonseca Date: Sat, 9 Apr 2011 15:27:15 +0000 (+0100) Subject: Ensure WGL visual has depth-stencil buffer. X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=49d29a97b15e651ba1f645888f8e7b81fc9071bf;p=apitrace Ensure WGL visual has depth-stencil buffer. --- 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;