vrend: Disable primitive restart when draw_vbo finishes

This looks like a copy-paste error. For desktop GL it is
disabled here, so on GLES this should probably be the same.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Gert Wollny 4 years ago
parent f4861ea251
commit 60f4d7b253
  1. 2
      src/vrend_renderer.c

@ -4850,7 +4850,7 @@ int vrend_draw_vbo(struct vrend_context *ctx,
if (info->primitive_restart) {
if (vrend_state.use_gles) {
glEnable(GL_PRIMITIVE_RESTART_FIXED_INDEX);
glDisable(GL_PRIMITIVE_RESTART_FIXED_INDEX);
} else if (has_feature(feat_nv_prim_restart)) {
glDisableClientState(GL_PRIMITIVE_RESTART_NV);
} else if (has_feature(feat_gl_prim_restart)) {

Loading…
Cancel
Save