summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/spec/arb_direct_state_access/gettextureimage-targets.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/spec/arb_direct_state_access/gettextureimage-targets.c b/tests/spec/arb_direct_state_access/gettextureimage-targets.c
index 73b4e5586..8e3f33555 100644
--- a/tests/spec/arb_direct_state_access/gettextureimage-targets.c
+++ b/tests/spec/arb_direct_state_access/gettextureimage-targets.c
@@ -207,10 +207,8 @@ getTexImage(bool doPBO, GLenum target, GLubyte data[][IMAGE_SIZE],
num_layers = 1;
break;
- case GL_TEXTURE_3D:
- num_layers = 16; /* Fall through. */
- case GL_TEXTURE_2D_ARRAY:
- num_layers = 7; /* Fall through. */
+ case GL_TEXTURE_3D: /* Fall through. */
+ case GL_TEXTURE_2D_ARRAY: /* Fall through. */
case GL_TEXTURE_CUBE_MAP_ARRAY:
num_layers = 6 * 3;
glCreateTextures(target, 1, &name);