From 9b36190d367a32d7d72234f763df23968f00b1e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 18 May 2011 08:17:56 +0100 Subject: [PATCH] Use alpha visuals. --- glws_glx.cpp | 2 ++ glws_wgl.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/glws_glx.cpp b/glws_glx.cpp index efc11c4..62bbb06 100644 --- a/glws_glx.cpp +++ b/glws_glx.cpp @@ -210,6 +210,7 @@ public: GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, + GLX_ALPHA_SIZE, 1, GLX_DEPTH_SIZE, 1, GLX_STENCIL_SIZE, 1, None @@ -220,6 +221,7 @@ public: GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, + GLX_ALPHA_SIZE, 1, GLX_DOUBLEBUFFER, GLX_DEPTH_SIZE, 1, GLX_STENCIL_SIZE, 1, 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; -- 2.45.2