mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-10 01:44:41 -06:00
gl/interpreter: Do not emit bindless texture usage unless the textures are used
This commit is contained in:
parent
06c8a87534
commit
048b1c3f05
@ -302,9 +302,14 @@ namespace gl
|
|||||||
GLFragmentDecompilerThread comp(shader_str, arr, frag, len);
|
GLFragmentDecompilerThread comp(shader_str, arr, frag, len);
|
||||||
|
|
||||||
std::stringstream builder;
|
std::stringstream builder;
|
||||||
builder <<
|
builder << "#version 450\n";
|
||||||
"#version 450\n"
|
|
||||||
"#extension GL_ARB_bindless_texture : require\n\n";
|
if (compiler_options & COMPILER_OPT_ENABLE_TEXTURES)
|
||||||
|
{
|
||||||
|
builder << "#extension GL_ARB_bindless_texture : require\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
builder << "\n";
|
||||||
|
|
||||||
::glsl::insert_subheader_block(builder);
|
::glsl::insert_subheader_block(builder);
|
||||||
comp.insertConstants(builder);
|
comp.insertConstants(builder);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user