From 9dcfab79a664e79c2b922fec1b3b199241b60e0a Mon Sep 17 00:00:00 2001
From: Rye Cogtail <rye@alchemyviewer.org>
Date: Sun, 19 Mar 2023 22:04:34 -0400
Subject: [PATCH] Fix multi threaded decode init on linux

---
 indra/llwindow/llwindowsdl.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp
index 90d6a931161..1fd4399cadc 100644
--- a/indra/llwindow/llwindowsdl.cpp
+++ b/indra/llwindow/llwindowsdl.cpp
@@ -848,6 +848,8 @@ void* LLWindowSDL::createSharedContext()
 	SDL_GLContext shared_context = SDL_GL_CreateContext(mWindow);
 	if (shared_context)
 	{
+		SDL_GL_MakeCurrent(mWindow, shared_context);
+		SDL_GL_MakeCurrent(mWindow, mGLContext);
 		LL_INFOS() << "Creating shared OpenGL context successful!" << LL_ENDL;
 
 		return (void*)shared_context;
-- 
GitLab