mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
Codechange: [Win32] Use an OpenGL core context instead of a compatibility one.
This commit is contained in:
parent
e8fc050b6e
commit
f94b2e73e1
@ -1479,7 +1479,7 @@ const char *VideoDriver_Win32OpenGL::AllocateContext()
|
|||||||
WGL_CONTEXT_MAJOR_VERSION_ARB, 3,
|
WGL_CONTEXT_MAJOR_VERSION_ARB, 3,
|
||||||
WGL_CONTEXT_MINOR_VERSION_ARB, 2,
|
WGL_CONTEXT_MINOR_VERSION_ARB, 2,
|
||||||
WGL_CONTEXT_FLAGS_ARB, _debug_driver_level >= 8 ? WGL_CONTEXT_DEBUG_BIT_ARB : 0,
|
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
|
0
|
||||||
};
|
};
|
||||||
rc = _wglCreateContextAttribsARB(this->dc, nullptr, attribs);
|
rc = _wglCreateContextAttribsARB(this->dc, nullptr, attribs);
|
||||||
|
Loading…
Reference in New Issue
Block a user