diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-06-02 07:09:27 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-06-02 07:09:27 +0800 |
commit | fcdef29504a32ad85ce32c3d95ea8648aa169004 (patch) | |
tree | cefa97aad93bc6d9a2d77b76a7ba4e8d53443c12 | |
parent | d3efdf379d38a1b54e41b22a0cad4ad3cafc907c (diff) |
Stop trying to force OpenGL version on non-macOS
Turns out my old GPU is detected as complying only to 4.5 when on Linux.
The fact that it's been detected as complying to 4.6 on FreeBSD this
whole time, is quite ironic.
I've only tested that the viewer runs with 4.6 without this on FreeBSD
(the implication works), will test Linux distros next.
-rw-r--r-- | indra/llwindow/llwindowsdl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index 69332e36b6..53092e4f2e 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -376,11 +376,9 @@ bool LLWindowSDL::createContext(int x, int y, int width, int height, int bits, b SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, depthBits); SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, stencilBits); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); #if LL_DARWIN + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1); -#else - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 6); #endif SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); |