mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 06:05:45 +00:00
Explicitly request alpha channel for GL test backbuffer
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user