From: José Fonseca Date: Wed, 18 May 2011 07:17:56 +0000 (+0100) Subject: Use alpha visuals. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=9b36190d367a32d7d72234f763df23968f00b1e8;p=apitrace Use alpha visuals. --- 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;