For cubemaps and cubemap arrays this should be 6. For non cubemaps
this should be 1.

Signed-off-by: Anuj Phogat <anuj.pho...@gmail.com>
---
 tests/util/piglit_ktx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/util/piglit_ktx.c b/tests/util/piglit_ktx.c
index a95300e..b96cb26 100644
--- a/tests/util/piglit_ktx.c
+++ b/tests/util/piglit_ktx.c
@@ -145,7 +145,7 @@ piglit_ktx_calc_target(struct piglit_ktx *self)
        } else {
                if (info->array_length != 0)
                        goto bad_target;
-               if (info->num_faces != 0)
+               if (info->num_faces != 1)
                        goto bad_target;
 
                info->target = GL_TEXTURE_3D;
-- 
2.5.0

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to