vrend: Re-select program if VBO is dirty

A vertex attribute array can affect the selection of the program.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Akihiko Odaki 3 years ago
parent 341e34652e
commit 234b2498a9
  1. 2
      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) {

Loading…
Cancel
Save