From 930ea526e0488b0c1b4d6c0f32c6ec1e1db07329 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 30 Oct 2022 17:12:41 +0000 Subject: Enable OpenGL 4.5 core profile --- application/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'application') 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() -- cgit v1.2.3