Explicitly request OpenGL 3.3 context

This commit is contained in:
Michał Janiszewski authored and LRFLEW committed 2016-06-12 17:45:18 -05:00
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);