summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-16 16:43:26 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-22 22:16:07 +0100
commitf94b2e73e118522c29898a77c2de4bd23451e1c7 (patch)
tree4fa4a3f685f2c498e6bbbaea02c9c8052c59829a
parente8fc050b6eebddaadf10563c3764ee455687559d (diff)
downloadopenttd-f94b2e73e118522c29898a77c2de4bd23451e1c7.tar.xz
Codechange: [Win32] Use an OpenGL core context instead of a compatibility one.
-rw-r--r--src/video/win32_v.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 5e9ad4e98..55f694990 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -1479,7 +1479,7 @@ const char *VideoDriver_Win32OpenGL::AllocateContext()
WGL_CONTEXT_MAJOR_VERSION_ARB, 3,
WGL_CONTEXT_MINOR_VERSION_ARB, 2,
WGL_CONTEXT_FLAGS_ARB, _debug_driver_level >= 8 ? WGL_CONTEXT_DEBUG_BIT_ARB : 0,
- _hasWGLARBCreateContextProfile ? WGL_CONTEXT_PROFILE_MASK_ARB : 0, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, // Terminate list if WGL_ARB_create_context_profile isn't supported.
+ _hasWGLARBCreateContextProfile ? WGL_CONTEXT_PROFILE_MASK_ARB : 0, WGL_CONTEXT_CORE_PROFILE_BIT_ARB, // Terminate list if WGL_ARB_create_context_profile isn't supported.
0
};
rc = _wglCreateContextAttribsARB(this->dc, nullptr, attribs);