diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-25 00:51:08 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-25 01:26:43 +0100 |
commit | 8d16ec6bba19e5fa482b79b89c95126f9817ec2b (patch) | |
tree | 8aa5122de0c41c91f3296df9f26098f90096b6a4 | |
parent | Set symmetric on glad features and add all OpenGL versions (diff) | |
download | ilt-8d16ec6bba19e5fa482b79b89c95126f9817ec2b.tar.bz2 ilt-8d16ec6bba19e5fa482b79b89c95126f9817ec2b.tar.xz ilt-8d16ec6bba19e5fa482b79b89c95126f9817ec2b.zip |
Create a v3.3 context and v3.3 glad library
-rw-r--r-- | thirdparty/Jamfile.jam | 1 | ||||
-rw-r--r-- | ui/applicationBase.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/thirdparty/Jamfile.jam b/thirdparty/Jamfile.jam index bee3392..417ef9c 100644 --- a/thirdparty/Jamfile.jam +++ b/thirdparty/Jamfile.jam @@ -4,4 +4,5 @@ lib glad : gl.xml : <cflags>-fPIC <warnings>off <warnings-as-errors>off + <glad.version>3.3 ; diff --git a/ui/applicationBase.cpp b/ui/applicationBase.cpp index 2be1f6c..7764c58 100644 --- a/ui/applicationBase.cpp +++ b/ui/applicationBase.cpp @@ -21,6 +21,9 @@ ApplicationBase::ApplicationBase() setGlAttribute(SDL_GL_DEPTH_SIZE, 16); setGlAttribute(SDL_GL_DOUBLEBUFFER, 1); + setGlAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); + setGlAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); + setGlAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); setGlAttribute(SDL_GL_SHARE_WITH_CURRENT_CONTEXT, 1); } |