From 989d4029333e73b4116ecf3b5faf5bf017bcf60d Mon Sep 17 00:00:00 2001 From: AstroSnail Date: Wed, 6 Jun 2018 10:34:59 +0100 Subject: [PATCH] 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 --- src/Application.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Application.cpp b/src/Application.cpp index 2ea41d7..2f49443 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -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);