diff options
author | LDA <lda@ldasuku.net> | 2024-10-17 00:16:44 -0700 |
---|---|---|
committer | LDA <lda@ldasuku.net> | 2024-10-17 00:16:44 -0700 |
commit | 9ba9eb2ac33a53a8fd50ce14d40be00d42a9f7af (patch) | |
tree | 88d8db3dace1851b1b780eb9264290ff5552c04f /source/application/StarMainApplication_sdl.cpp | |
parent | 8aedf51957689d37250f21279df8376d57414cee (diff) |
only set minimum opengl context version on macos
Diffstat (limited to 'source/application/StarMainApplication_sdl.cpp')
-rw-r--r-- | source/application/StarMainApplication_sdl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index 6b0ca4c..557e02d 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -314,10 +314,12 @@ public: int height; SDL_GetWindowSize(m_sdlWindow, &width, &height); m_windowSize = Vec2U(width, height); - + +#ifdef __APPLE__ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); +#endif m_sdlGlContext = SDL_GL_CreateContext(m_sdlWindow); if (!m_sdlGlContext) |