projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89efc1b
)
vbo: remove unreachable _mesa_error() call
author
Brian Paul
<brianp@vmware.com>
Thu, 1 Dec 2011 23:37:49 +0000
(16:37 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 2 Dec 2011 14:22:40 +0000
(07:22 -0700)
If mode is not GL_POINT/LINE/FILL we'll have already reported the
error earlier in the function and returned so we can never get here.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/vbo/vbo_exec_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_exec_api.c
b/src/mesa/vbo/vbo_exec_api.c
index 70551e0e1815d09fdef3eeca58231e160ee07498..4be016925c960d1c9d292e15b56182d6c60db976 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_api.c
+++ b/
src/mesa/vbo/vbo_exec_api.c
@@
-655,9
+655,6
@@
vbo_exec_EvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
CALL_End(GET_DISPATCH(), ());
}
break;
- default:
- _mesa_error( ctx, GL_INVALID_ENUM, "glEvalMesh2(mode)" );
- return;
}
}