summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2014-10-07 10:56:49 +0300
committerTapani Pälli <[email protected]>2014-10-10 15:01:51 +0300
commitac557b4c121e4ea42ebe7f222f1f40bc56fe3aae (patch)
tree0382fe476a1392a427ecd55dd65d28fbcbef6a04 /src/mesa/main/teximage.c
parent94841b6d5dac6dcb445a30f083ec6e9858ad2f7d (diff)
mesa: fix error reported on gTexSubImage2D when level not valid
Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Juha-Pekka Heikkila <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 647d28ab3d1..c0298af8ea6 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -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;
}