diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-05-18 08:17:56 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-05-18 08:17:56 +0100 |
commit | 9b36190d367a32d7d72234f763df23968f00b1e8 (patch) | |
tree | 2d3e760341da8ff34bc97378db5e362be08d54af /glws_wgl.cpp | |
parent | 5ec54cb5f290cb10c773ab276bb9686b21b2166b (diff) |
Use alpha visuals.
Diffstat (limited to 'glws_wgl.cpp')
-rw-r--r-- | glws_wgl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glws_wgl.cpp b/glws_wgl.cpp index b203743..94390da 100644 --- a/glws_wgl.cpp +++ b/glws_wgl.cpp @@ -107,10 +107,11 @@ public: hDC = GetDC(hWnd); memset(&pfd, 0, sizeof pfd); - pfd.cColorBits = 3; + pfd.cColorBits = 4; pfd.cRedBits = 1; pfd.cGreenBits = 1; pfd.cBlueBits = 1; + pfd.cAlphaBits = 1; pfd.cDepthBits = 1; pfd.cStencilBits = 1; pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL; |