mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
mesa: minor fix to glTexSubImage error message
This commit is contained in:
parent
d3aa6a5c56
commit
b52e05cecb
1 changed files with 2 additions and 1 deletions
|
|
@ -2204,7 +2204,8 @@ 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, "glTexSubImage2D(level=%d)", level);
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glTexSubImage%uD(level=%d)",
|
||||
dimensions, level);
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue