From 279cac3cab1ae64eb7520288f604bc69228b6a8c Mon Sep 17 00:00:00 2001 From: Laura Ekstrand Date: Fri, 9 Jan 2015 11:55:59 -0800 Subject: arb_direct_state_access: Fix gettextureimage-targets fall through. --- tests/spec/arb_direct_state_access/gettextureimage-targets.c | 6 ++---- 1 file 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); -- cgit v1.2.3