From cbb8090bea3d0cd2fc88129115e3e9c8f52f418f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 1 Nov 2020 17:56:50 -0500 Subject: [PATCH] mesa: don't FLUSH_VERTICES from primitive restart changes It's now a draw state with no interactions with glBegin/End. Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/mesa/main/enable.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 0a6632d..c469faa 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -137,7 +137,6 @@ client_state(struct gl_context *ctx, struct gl_vertex_array_object* vao, if (ctx->Array.PrimitiveRestart == state) return; - FLUSH_VERTICES(ctx, 0); ctx->Array.PrimitiveRestart = state; _mesa_update_derived_primitive_restart_state(ctx); return; @@ -1238,7 +1237,6 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) goto invalid_enum_error; } if (ctx->Array.PrimitiveRestart != state) { - FLUSH_VERTICES(ctx, 0); ctx->Array.PrimitiveRestart = state; _mesa_update_derived_primitive_restart_state(ctx); } @@ -1248,7 +1246,6 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) if (!_mesa_is_gles3(ctx) && !_mesa_has_ARB_ES3_compatibility(ctx)) goto invalid_enum_error; if (ctx->Array.PrimitiveRestartFixedIndex != state) { - FLUSH_VERTICES(ctx, 0); ctx->Array.PrimitiveRestartFixedIndex = state; _mesa_update_derived_primitive_restart_state(ctx); } -- 2.7.4