From 234b2498a9b143f54dabd0da52fa99cca4a9b4ac Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Wed, 16 Feb 2022 15:46:22 +0900 Subject: [PATCH] vrend: Re-select program if VBO is dirty A vertex attribute array can affect the selection of the program. Signed-off-by: Akihiko Odaki Reviewed-by: Gert Wollny --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index c4ed454..c07625a 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -4931,7 +4931,7 @@ int vrend_draw_vbo(struct vrend_context *ctx, } if (sub_ctx->shader_dirty || sub_ctx->swizzle_output_rgb_to_bgr || - sub_ctx->convert_linear_to_srgb_on_write) + sub_ctx->convert_linear_to_srgb_on_write || sub_ctx->vbo_dirty) new_program = vrend_select_program(sub_ctx, info->vertices_per_patch); if (!sub_ctx->prog) {