summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2015-01-09 11:55:59 -0800
committerLaura Ekstrand <laura@jlekstrand.net>2015-04-02 17:57:41 -0700
commit279cac3cab1ae64eb7520288f604bc69228b6a8c (patch)
tree7362d247234771939a23df46e136c3a79a0b481a
parent504f7fdf3f2c43df968b060bd523e01fcd3c0941 (diff)
arb_direct_state_access: Fix gettextureimage-targets fall through.
-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);