mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
mesa: add missing return statements after recording errors
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
2ffc7fd2d2
commit
9a31e090ef
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue