This repository has no description
950 B
18 lines
1diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp
2--- a/Source/Core/VideoBackends/OGL/Render.cpp
3+++ b/Source/Core/VideoBackends/OGL/Render.cpp
4@@ -674,8 +674,14 @@ Renderer::Renderer(std::unique_ptr<GLContext> main_gl_context, float backbuffer_
5 g_Config.backend_info.bSupportsComputeShaders && g_ogl_config.bSupportsImageLoadStore;
6
7 // Background compiling is supported only when shared contexts aren't broken.
8+#ifdef __LIBRETRO__
9+ // Libretro cannot create shared GL contexts via CreateSharedContext(),
10+ // so disable background shader compilation entirely.
11+ g_Config.backend_info.bSupportsBackgroundCompiling = false;
12+#else
13 g_Config.backend_info.bSupportsBackgroundCompiling =
14 !DriverDetails::HasBug(DriverDetails::BUG_SHARED_CONTEXT_SHADER_COMPILATION);
15+#endif
16
17 // Program binaries are supported on GL4.1+, ARB_get_program_binary, or ES3.
18 if (supports_glsl_cache)