diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index a620ea3..5cea848 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -2885,7 +2885,7 @@ void vrend_draw_vbo(struct vrend_context *ctx, same_prog = false; if (ctx->sub->shaders[PIPE_SHADER_FRAGMENT]->current->id != ctx->sub->prog_ids[PIPE_SHADER_FRAGMENT]) same_prog = false; - if (ctx->sub->shaders[PIPE_SHADER_GEOMETRY] && ctx->sub->shaders[PIPE_SHADER_FRAGMENT]->current->id != ctx->sub->prog_ids[PIPE_SHADER_FRAGMENT]) + if (ctx->sub->shaders[PIPE_SHADER_GEOMETRY] && ctx->sub->shaders[PIPE_SHADER_GEOMETRY]->current->id != ctx->sub->prog_ids[PIPE_SHADER_GEOMETRY]) same_prog = false; if (!same_prog) {