summaryrefslogtreecommitdiff
path: root/application
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-30 17:12:41 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-30 17:12:41 +0000
commit930ea526e0488b0c1b4d6c0f32c6ec1e1db07329 (patch)
tree919f54ec450d682f75775114a5dbcc9f2211f3e0 /application
parentSetting texture unit on bind (diff)
downloadilt-930ea526e0488b0c1b4d6c0f32c6ec1e1db07329.tar.bz2
ilt-930ea526e0488b0c1b4d6c0f32c6ec1e1db07329.tar.xz
ilt-930ea526e0488b0c1b4d6c0f32c6ec1e1db07329.zip
Enable OpenGL 4.5 core profile
Diffstat (limited to 'application')
-rw-r--r--application/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/main.cpp b/application/main.cpp
index 3abcc83..a70fd35 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -41,6 +41,10 @@ public:
SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
+
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4);
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 5);
}
~SDL_Application()