diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-25 15:09:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 15:09:11 +0200 |
commit | 9de724f327c21a4c03300798b9dc2f8df29d553a (patch) | |
tree | 1c4d78ef656d97a2609a3b6b2b6da44f89115fdf /platform/windows/context_gl_win.cpp | |
parent | ece9a0f40080e7e4f97733473ed7bddf846afa57 (diff) | |
parent | dc2e73499a3264c6c77eb4ddadb6961d684c2941 (diff) |
Merge pull request #23091 from aaronfranke/mingw-warnings
Fix some compile warnings for Windows from Linux
Diffstat (limited to 'platform/windows/context_gl_win.cpp')
-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 fd7cd69c37..2d70b00dda 100644 --- a/platform/windows/context_gl_win.cpp +++ b/platform/windows/context_gl_win.cpp @@ -92,9 +92,9 @@ Error ContextGL_Win::initialize() { PFD_SUPPORT_OPENGL | // Format Must Support OpenGL PFD_DOUBLEBUFFER, (BYTE)PFD_TYPE_RGBA, - OS::get_singleton()->is_layered_allowed() ? (BYTE)32 : (BYTE)24, + (BYTE)(OS::get_singleton()->is_layered_allowed() ? 32 : 24), (BYTE)0, (BYTE)0, (BYTE)0, (BYTE)0, (BYTE)0, (BYTE)0, // Color Bits Ignored - OS::get_singleton()->is_layered_allowed() ? (BYTE)8 : (BYTE)0, // Alpha Buffer + (BYTE)(OS::get_singleton()->is_layered_allowed() ? 8 : 0), // Alpha Buffer (BYTE)0, // Shift Bit Ignored (BYTE)0, // No Accumulation Buffer (BYTE)0, (BYTE)0, (BYTE)0, (BYTE)0, // Accumulation Bits Ignored |