mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
mesa: check for no state change in glPrimitiveRestartIndex()
Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
45453d8f69
commit
d2003ee7b7
1 changed files with 5 additions and 4 deletions
|
|
@ -1100,11 +1100,12 @@ _mesa_PrimitiveRestartIndex(GLuint index)
|
|||
return;
|
||||
}
|
||||
|
||||
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
|
||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||
|
||||
FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
|
||||
|
||||
ctx->Array.RestartIndex = index;
|
||||
if (ctx->Array.RestartIndex != index) {
|
||||
FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
|
||||
ctx->Array.RestartIndex = index;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue