projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ffc7fd
)
mesa: add missing return statements after recording errors
author
Brian Paul
<brianp@vmware.com>
Mon, 3 Sep 2012 14:12:04 +0000
(08:12 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 4 Sep 2012 00:07:41 +0000
(18:07 -0600)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/eval.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/eval.c
b/src/mesa/main/eval.c
index 77092171b46798dc4ced8b50e362dd5588b95f40..487c4ce04d9856ca745f8828a3e8514db48c36b9 100644
(file)
--- a/
src/mesa/main/eval.c
+++ b/
src/mesa/main/eval.c
@@
-384,6
+384,7
@@
map1(GLenum target, GLfloat u1, GLfloat u2, GLint ustride,
k = _mesa_evaluator_components( target );
if (k == 0) {
_mesa_error( ctx, GL_INVALID_ENUM, "glMap1(target)" );
+ return;
}
if (ustride < k) {
@@
-473,6
+474,7
@@
map2( GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
k = _mesa_evaluator_components( target );
if (k==0) {
_mesa_error( ctx, GL_INVALID_ENUM, "glMap2(target)" );
+ return;
}
if (ustride < k) {