summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/copyimage.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-06-02 14:13:18 +1000
committerDave Airlie <airlied@redhat.com>2016-06-03 06:08:44 +1000
commitaf7bf610cf74c6805f42babbcf85bc88b2b9453d (patch)
treefd703eaa8b7cc7d263c38780f1215980364e0e79 /src/mesa/main/copyimage.c
parentc0856eacf1f76f294e2b89eb7250580517018567 (diff)
downloadexternal_mesa3d-af7bf610cf74c6805f42babbcf85bc88b2b9453d.zip
external_mesa3d-af7bf610cf74c6805f42babbcf85bc88b2b9453d.tar.gz
external_mesa3d-af7bf610cf74c6805f42babbcf85bc88b2b9453d.tar.bz2
mesa/copyimage: report INVALID_VALUE for missing cube face
The specs says INVALID_VALUE for exceeding dimensions, which is really what is happening here. This fixes: GL45-CTS.copy_image.non_existent_mipmap Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Antia Puentes <apuentes@igalia.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/copyimage.c')
-rw-r--r--src/mesa/main/copyimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/copyimage.c b/src/mesa/main/copyimage.c
index 6aa6bcb..7e5df61 100644
--- a/src/mesa/main/copyimage.c
+++ b/src/mesa/main/copyimage.c
@@ -180,7 +180,7 @@ prepare_target(struct gl_context *ctx, GLuint name, GLenum target,
for (i = 0; i < depth; i++) {
if (!texObj->Image[z+i][level]) {
/* missing cube face */
- _mesa_error(ctx, GL_INVALID_OPERATION,
+ _mesa_error(ctx, GL_INVALID_VALUE,
"glCopyImageSubData(missing cube face)");
return false;
}