diff options
author | Kenneth Graunke <[email protected]> | 2013-05-29 08:29:26 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-05-29 14:22:14 -0700 |
commit | 51c0ffacb24d1b4e48f8f53dc8e191b64fbd679a (patch) | |
tree | 3560712941b0b72f99076c8edfed2cf8ce12a718 /src/mesa | |
parent | a41478e3f60d0d4c16cc22170866e561fd216834 (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/api_arrayelt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c index bd55f8e4322..8e581c8d9c6 100644 --- a/src/mesa/main/api_arrayelt.c +++ b/src/mesa/main/api_arrayelt.c @@ -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; } |