From 34d41031113851e2b2aee2812e8adbc6bec93b55 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Tue, 8 Oct 2013 06:29:05 +0200 Subject: [PATCH] Always request OpenGL Core profile --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index b553e0e..ca03fb4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,6 +58,7 @@ int rgssThreadFun(void *userdata) /* Setup GL context */ SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); if (threadData->config.debugMode) SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG);