nv2a/gl: Ensure shader_binding exists before dirty check

This commit is contained in:
Matt Borgerson 2024-07-26 17:21:01 -07:00 committed by mborgerson
parent 84dd112186
commit cd2278dd62
1 changed files with 1 additions and 1 deletions

View File

@ -1017,7 +1017,7 @@ void pgraph_gl_bind_shaders(PGRAPHState *pg)
fixed_function ? "yes" : "no");
bool binding_changed = false;
if (!test_shaders_dirty(pg) && !pg->program_data_dirty) {
if (r->shader_binding && !test_shaders_dirty(pg) && !pg->program_data_dirty) {
nv2a_profile_inc_counter(NV2A_PROF_SHADER_BIND_NOTDIRTY);
goto update_constants;
}