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:
57b8f13
)
mesa: generate GL_INVALID_OPERATION in glIsEnabledIndex() between Begin/End
author
Brian Paul
<brianp@vmware.com>
Mon, 19 Sep 2011 14:13:38 +0000
(08:13 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 19 Sep 2011 14:13:47 +0000
(08:13 -0600)
src/mesa/main/enable.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/enable.c
b/src/mesa/main/enable.c
index
2d857c1
..
ba24ca7
100644
(file)
--- a/
src/mesa/main/enable.c
+++ b/
src/mesa/main/enable.c
@@
-1016,6
+1016,7
@@
GLboolean GLAPIENTRY
_mesa_IsEnabledIndexed( GLenum cap, GLuint index )
{
GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, 0);
switch (cap) {
case GL_BLEND:
if (index >= ctx->Const.MaxDrawBuffers) {