forked from rosebudai/OpenRCT2-Web
Explicitly request OpenGL 3.3 context
This commit is contained in:
1 parent
f5604c6b69
commit
e0bb89d1d6
1 file changed
+4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user