Mesa (master): vbo: remove unreachable _mesa_error() call
Brian Paul
brianp at kemper.freedesktop.org
Fri Dec 2 14:52:47 UTC 2011
Module: Mesa
Branch: master
Commit: 01cd9a7d9292507a8c9e6cdc74ba1083248b0bf0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=01cd9a7d9292507a8c9e6cdc74ba1083248b0bf0
Author: Brian Paul <brianp at vmware.com>
Date: Thu Dec 1 16:37:49 2011 -0700
vbo: remove unreachable _mesa_error() call
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 at vmware.com>
---
src/mesa/vbo/vbo_exec_api.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c
index 70551e0..4be0169 100644
--- 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;
}
}
More information about the mesa-commit
mailing list