GLSL shaders are only defined starting OpenGL 2.0

This commit is contained in:
AstroSnail 2018-06-04 11:01:43 +01:00
parent 4f16d08d99
commit b5bf282711
No known key found for this signature in database
GPG Key ID: CEB30DBCFD2D34C6
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ 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, 1);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);