diff options
| author | Rye <rye@alchemyviewer.org> | 2025-10-30 04:44:22 -0400 |
|---|---|---|
| committer | Rye <rye@alchemyviewer.org> | 2025-11-02 21:40:05 -0500 |
| commit | 0b3c2f6770db3b019be95802a6168e02aca7bfb5 (patch) | |
| tree | 29f78681132e204f80d5c204511b4687456341e2 /indra/llwindow/llwindowsdl.h | |
| parent | 0c1cbf2d38cbd0db5c9cfb86559b4fc5e4acee0d (diff) | |
Fix threaded GL contexts on linux backend
Enable core profile context support on linux
Signed-off-by: Rye <rye@alchemyviewer.org>
Diffstat (limited to 'indra/llwindow/llwindowsdl.h')
| -rw-r--r-- | indra/llwindow/llwindowsdl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowsdl.h b/indra/llwindow/llwindowsdl.h index 8a8e9dd1bf..4d4a7a5f65 100644 --- a/indra/llwindow/llwindowsdl.h +++ b/indra/llwindow/llwindowsdl.h @@ -31,6 +31,7 @@ #include "llwindow.h" #include "lltimer.h" +#include "llmutex.h" #include "SDL3/SDL.h" #include "SDL3/SDL_endian.h" @@ -225,6 +226,10 @@ private: U32 mKeyVirtualKey = 0; U32 mKeyModifiers = SDL_KMOD_NONE; + LLMutex mOSRMutex; + std::unordered_map<SDL_GLContext, SDL_Window*> mOSRContexts; + std::list<SDL_Window*> mDeadOSRWindows; + void tryFindFullscreenSize(int &aWidth, int &aHeight); enum EServerProtocol{ X11, Wayland, Unknown }; |
