Change requirement to OpenGL 3.3 Core

Just to make it convenient for everyone else
3.3 is chosen because that's the core version used by the llvmpipe renderer
This commit is contained in:
AstroSnail 2018-06-06 10:34:59 +01:00
parent ee0abf4d5b
commit 989d402933
No known key found for this signature in database
GPG Key ID: CEB30DBCFD2D34C6

View File

@ -55,9 +55,9 @@ void Application::initialize()
} }
// Set GL Attributes // Set GL Attributes
//SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
m_glContext = SDL_GL_CreateContext(m_window); m_glContext = SDL_GL_CreateContext(m_window);