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:
parent
ee0abf4d5b
commit
989d402933
|
@ -55,9 +55,9 @@ void Application::initialize()
|
|||
}
|
||||
|
||||
// Set GL Attributes
|
||||
//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_MINOR_VERSION, 0);
|
||||
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);
|
||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
||||
|
||||
m_glContext = SDL_GL_CreateContext(m_window);
|
||||
|
|
Loading…
Reference in New Issue