summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorreduz <juan@okamstudio.com>2016-12-25 08:05:23 -0300
committerreduz <juan@okamstudio.com>2016-12-25 08:05:23 -0300
commit289bc881aaec35cc127256137abc7dcf116afd48 (patch)
tree620a54466779338088eff108e2899944dca16b5a /platform
parent0d4abf2aa3a336a8a04c83f0576c6b42783ba6e9 (diff)
now it really works on window for real
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/context_gl_win.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/windows/context_gl_win.cpp b/platform/windows/context_gl_win.cpp
index fc6e33f408..0ca4a67d19 100644
--- a/platform/windows/context_gl_win.cpp
+++ b/platform/windows/context_gl_win.cpp
@@ -110,6 +110,7 @@ bool ContextGL_Win::is_using_vsync() const {
return use_vsync;
}
+#define _WGL_CONTEXT_DEBUG_BIT_ARB 0x0001
Error ContextGL_Win::initialize() {
@@ -165,7 +166,7 @@ Error ContextGL_Win::initialize() {
WGL_CONTEXT_MAJOR_VERSION_ARB, 3,//we want a 3.3 context
WGL_CONTEXT_MINOR_VERSION_ARB, 3,
//and it shall be forward compatible so that we can only use up to date functionality
- WGL_CONTEXT_FLAGS_ARB, WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB/*|WGL_CONTEXT_DEBUG_BIT_ARB*/,
+ WGL_CONTEXT_FLAGS_ARB, WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB|_WGL_CONTEXT_DEBUG_BIT_ARB,
0}; //zero indicates the end of the array
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = NULL; //pointer to the method