Fix OpenGL buffer depth for per pixel transparency support (Windows, NVIDIA)

This commit is contained in:
bruvzg 2018-07-18 17:38:55 +03:00
parent d603a74c53
commit 31a0b9eaed
No known key found for this signature in database
GPG Key ID: 89DD917D9CE4218D
1 changed files with 2 additions and 2 deletions

View File

@ -106,9 +106,9 @@ Error ContextGL_Win::initialize() {
PFD_SUPPORT_OPENGL | // Format Must Support OpenGL
PFD_DOUBLEBUFFER,
PFD_TYPE_RGBA,
24,
OS::get_singleton()->is_layered_allowed() ? 32 : 24,
0, 0, 0, 0, 0, 0, // Color Bits Ignored
0, // No Alpha Buffer
OS::get_singleton()->is_layered_allowed() ? 8 : 0, // Alpha Buffer
0, // Shift Bit Ignored
0, // No Accumulation Buffer
0, 0, 0, 0, // Accumulation Bits Ignored