diff options
| author | Erik Kundiman <erik@megapahit.org> | 2025-06-02 08:02:39 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2025-06-02 08:02:39 +0800 | 
| commit | 2e6dd2843b6b7c287783393ade1892568896a5a0 (patch) | |
| tree | 2babd2c1bbeaad1cf9d347e0cbbab2a984a44e17 | |
| parent | fcdef29504a32ad85ce32c3d95ea8648aa169004 (diff) | |
Revert "Stop trying to force OpenGL version on non-macOS"
This reverts commit fcdef29504a32ad85ce32c3d95ea8648aa169004.
The moment 1 or 2 lines got removed, we lost core profile again.
| -rw-r--r-- | indra/llwindow/llwindowsdl.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index 53092e4f2e..69332e36b6 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -376,9 +376,11 @@ 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); -#if LL_DARWIN      SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4); +#if LL_DARWIN      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); | 
