diff options
author | Brian Paul <[email protected]> | 2011-12-01 16:37:49 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-12-02 07:22:40 -0700 |
commit | 01cd9a7d9292507a8c9e6cdc74ba1083248b0bf0 (patch) | |
tree | a2e5be764263c5df7c4c651723dbb1786289e76e | |
parent | 89efc1b839591473d0a448dc1087a5deb56579c7 (diff) |
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 <[email protected]>
-rw-r--r-- | 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 70551e0e181..4be016925c9 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; } } |