Explicitly request alpha channel for GL test backbuffer

This commit is contained in:
baldurk
2019-09-18 13:15:38 +01:00
parent ba16bd9bfe
commit 9a99696593
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -134,6 +134,8 @@ void *OpenGLGraphicsTest::MakeContext(GraphicsWindow *win, void *share)
8,
GLX_BLUE_SIZE,
8,
GLX_ALPHA_SIZE,
8,
GLX_DOUBLEBUFFER,
True,
GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB,
+1
View File
@@ -89,6 +89,7 @@ bool OpenGLGraphicsTest::Init()
pfd.cColorBits = 24;
pfd.cDepthBits = 0;
pfd.cStencilBits = 0;
pfd.cAlphaBits = 8;
int pf = ::ChoosePixelFormat(dc, &pfd);
::SetPixelFormat(dc, pf, &pfd);