summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-05 17:37:16 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-05 17:37:16 +0200
commit3e1b9b9689e4d49f0702cc69a4afcaa5f0b1715c (patch)
tree463b04707944baf99b37e25cb8c4f58dc4dd8f86
parentFixed FOV (diff)
downloadAltCraft-3e1b9b9689e4d49f0702cc69a4afcaa5f0b1715c.tar
AltCraft-3e1b9b9689e4d49f0702cc69a4afcaa5f0b1715c.tar.gz
AltCraft-3e1b9b9689e4d49f0702cc69a4afcaa5f0b1715c.tar.bz2
AltCraft-3e1b9b9689e4d49f0702cc69a4afcaa5f0b1715c.tar.lz
AltCraft-3e1b9b9689e4d49f0702cc69a4afcaa5f0b1715c.tar.xz
AltCraft-3e1b9b9689e4d49f0702cc69a4afcaa5f0b1715c.tar.zst
AltCraft-3e1b9b9689e4d49f0702cc69a4afcaa5f0b1715c.zip
-rw-r--r--src/Render.cpp1
1 files changed, 1 insertions, 0 deletions
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);