diff options
author | Marek Olšák <[email protected]> | 2017-06-10 11:51:40 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-22 01:51:02 +0200 |
commit | 1f3dc332f5b5c7fd9defd0cebeee92ff8511cee8 (patch) | |
tree | 181cf79cc71de7877e1b1d6ae121578a0c4c6ac1 /src/mesa/main/enable.c | |
parent | 29db5c1dcc5940fd18e72d1a7295cbb9edb424d8 (diff) |
mesa: don't flag _NEW_TRANSFORM for primitive restart
It's a draw state.
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 9ff3c5af530..861d46e23f7 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1016,7 +1016,7 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) goto invalid_enum_error; } if (ctx->Array.PrimitiveRestart != state) { - FLUSH_VERTICES(ctx, _NEW_TRANSFORM); + FLUSH_VERTICES(ctx, 0); ctx->Array.PrimitiveRestart = state; update_derived_primitive_restart_state(ctx); } @@ -1026,7 +1026,7 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) if (!_mesa_is_gles3(ctx) && !ctx->Extensions.ARB_ES3_compatibility) goto invalid_enum_error; if (ctx->Array.PrimitiveRestartFixedIndex != state) { - FLUSH_VERTICES(ctx, _NEW_TRANSFORM); + FLUSH_VERTICES(ctx, 0); ctx->Array.PrimitiveRestartFixedIndex = state; update_derived_primitive_restart_state(ctx); } |