Преглед на файлове

Merge pull request #20245 from bruvzg/fix_win_pp_transp

Fix OpenGL buffer depth for per pixel transparency support (Windows)
Rémi Verschelde преди 7 години
родител
ревизия
d1624cca99
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      platform/windows/context_gl_win.cpp

+ 2 - 2
platform/windows/context_gl_win.cpp

@@ -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