mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-12 09:20:37 +01:00
mesa: fix error reported on gTexSubImage2D when level not valid
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
This commit is contained in:
parent
94841b6d5d
commit
ac557b4c12
1 changed files with 1 additions and 1 deletions
|
|
@ -2449,7 +2449,7 @@ texsubimage_error_check(struct gl_context *ctx, GLuint dimensions,
|
|||
|
||||
/* level check */
|
||||
if (level < 0 || level >= _mesa_max_texture_levels(ctx, target)) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glTexSubImage%uD(level=%d)",
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "glTexSubImage%uD(level=%d)",
|
||||
dimensions, level);
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue