mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 05:10:23 +01:00
mesa: Ignore fixed-index primitive restart in ArrayElement().
GL_PRIMITIVE_RESTART_FIXED_INDEX is only supposed to apply to glDrawElements*. This code is for legacy drawing paths and display lists, so it shouldn't apply. NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
a41478e3f6
commit
51c0ffacb2
1 changed files with 1 additions and 1 deletions
|
|
@ -1666,7 +1666,7 @@ _ae_ArrayElement(GLint elt)
|
|||
/* If PrimitiveRestart is enabled and the index is the RestartIndex
|
||||
* then we call PrimitiveRestartNV and return.
|
||||
*/
|
||||
if (ctx->Array._PrimitiveRestart && (elt == ctx->Array._RestartIndex)) {
|
||||
if (ctx->Array.PrimitiveRestart && (elt == ctx->Array.RestartIndex)) {
|
||||
CALL_PrimitiveRestartNV((struct _glapi_table *)disp, ());
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue