diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-07-24 22:36:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-24 22:36:24 +0200 |
| commit | d1624cca990637a571f56cbcb2f512c0d0d28e20 (patch) | |
| tree | 1bb8349ed4fe11350f5aa04678b4652640a40b6a | |
| parent | fda6b78baebf67e20eb29fd7b949db468c10a990 (diff) | |
| parent | 31a0b9eaed1ff4ef27655281c56daa0704d67200 (diff) | |
Merge pull request #20245 from bruvzg/fix_win_pp_transp
Fix OpenGL buffer depth for per pixel transparency support (Windows)
| -rw-r--r-- | platform/windows/context_gl_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/windows/context_gl_win.cpp b/platform/windows/context_gl_win.cpp index d312fbcb12..a158237418 100644 --- a/platform/windows/context_gl_win.cpp +++ b/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 |