nv2a/vk: Report dirty if no pipeline is bound

This commit is contained in:
Matt Borgerson 2024-11-14 14:55:21 -07:00 committed by mborgerson
parent 8dc3b646a3
commit 58c1daf594
1 changed files with 2 additions and 3 deletions

View File

@ -628,10 +628,9 @@ static bool check_render_pass_dirty(PGRAPHState *pg)
static bool check_pipeline_dirty(PGRAPHState *pg)
{
PGRAPHVkState *r = pg->vk_renderer_state;
assert(r->pipeline_binding);
if (r->shader_bindings_changed || r->texture_bindings_changed ||
check_render_pass_dirty(pg)) {
if (!r->pipeline_binding || r->shader_bindings_changed ||
r->texture_bindings_changed || check_render_pass_dirty(pg)) {
return true;
}