projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45453d8
)
mesa: check for no state change in glPrimitiveRestartIndex()
author
Brian Paul
<brianp@vmware.com>
Mon, 20 Feb 2012 02:50:32 +0000
(19:50 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 20 Feb 2012 15:04:34 +0000
(08:04 -0700)
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/main/varray.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/varray.c
b/src/mesa/main/varray.c
index
93f6fcd
..
39d3a27
100644
(file)
--- a/
src/mesa/main/varray.c
+++ b/
src/mesa/main/varray.c
@@
-1100,11
+1100,12
@@
_mesa_PrimitiveRestartIndex(GLuint index)
return;
}
- ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
-
- FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
- ctx->Array.RestartIndex = index;
+ if (ctx->Array.RestartIndex != index) {
+ FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
+ ctx->Array.RestartIndex = index;
+ }
}