From 048b1c3f052884756ca694005d0ebc70fe31a8ac Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 14 Jun 2026 19:15:33 +0300 Subject: [PATCH] gl/interpreter: Do not emit bindless texture usage unless the textures are used --- rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp b/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp index aac9a9eabf..d5b49deb69 100644 --- a/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp +++ b/rpcs3/Emu/RSX/GL/GLShaderInterpreter.cpp @@ -302,9 +302,14 @@ namespace gl GLFragmentDecompilerThread comp(shader_str, arr, frag, len); std::stringstream builder; - builder << - "#version 450\n" - "#extension GL_ARB_bindless_texture : require\n\n"; + builder << "#version 450\n"; + + if (compiler_options & COMPILER_OPT_ENABLE_TEXTURES) + { + builder << "#extension GL_ARB_bindless_texture : require\n"; + } + + builder << "\n"; ::glsl::insert_subheader_block(builder); comp.insertConstants(builder);