1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Explicitly request OpenGL 3.3 context

This commit is contained in:
Michał Janiszewski
2016-06-12 19:12:54 +02:00
committed by LRFLEW
parent f5604c6b69
commit e0bb89d1d6

View File

@@ -247,6 +247,10 @@ public:
{
_window = window;
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
_context = SDL_GL_CreateContext(_window);
SDL_GL_MakeCurrent(_window, _context);