summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texgetimage.c
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2015-03-04 11:03:18 -0800
committerLaura Ekstrand <laura@jlekstrand.net>2015-03-09 13:33:53 -0700
commit8979368f12b96c28774119aff955e7f66a57b3fc (patch)
treedb4827da22afaf8226d3bdd1b680d148726339c1 /src/mesa/main/texgetimage.c
parent1ee000a0b6737d6c140d4f07b6044908b8ebfdc7 (diff)
downloadexternal_mesa3d-8979368f12b96c28774119aff955e7f66a57b3fc.zip
external_mesa3d-8979368f12b96c28774119aff955e7f66a57b3fc.tar.gz
external_mesa3d-8979368f12b96c28774119aff955e7f66a57b3fc.tar.bz2
main: Remove redundant NumLayers checks.
ARB_direct_state_access texture functions that operate on cube maps no longer need to verify that cube map texture objects contain six texture images because _mesa_cube_level_complete now does that for them. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/mesa/main/texgetimage.c')
-rw-r--r--src/mesa/main/texgetimage.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index f975c16..42044dd 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -1088,19 +1088,6 @@ _mesa_GetTextureImage(GLuint texture, GLint level, GLenum format,
/* Must handle special case GL_TEXTURE_CUBE_MAP. */
if (texObj->Target == GL_TEXTURE_CUBE_MAP) {
- /* Error checking */
- if (texObj->NumLayers < 6) {
- /* Not enough image planes for a cube map. The spec does not say
- * what should happen in this case because the user has always
- * specified each cube face separately (using
- * GL_TEXTURE_CUBE_MAP_POSITIVE_X+i) in previous GL versions.
- * This is addressed in Khronos Bug 13223.
- */
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "glGetTextureImage(insufficient cube map storage)");
- return;
- }
-
/*
* What do we do if the user created a texture with the following code
* and then called this function with its handle?