From 3e1b9b9689e4d49f0702cc69a4afcaa5f0b1715c Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 5 Aug 2018 20:37:16 +0500 Subject: Change OpenGL context profile to core --- src/Render.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Render.cpp b/src/Render.cpp index 314840d..c44d2b4 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -43,6 +43,7 @@ void Render::InitSdl(unsigned int WinWidth, unsigned int WinHeight, std::string if (SDL_Init(SDL_INIT_VIDEO) < 0) throw std::runtime_error("SDL initalization failed: " + std::string(SDL_GetError())); + 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); -- cgit v1.2.3