[Piglit] [PATCH] getteximage-depth: Fix failures on cubemap-supporting GL < 3.0.
Eric Anholt
eric at anholt.net
Thu Dec 29 19:15:18 UTC 2016
You don't get to specify depth cubes until 3.0 (GL_EXT_gpu_shader4
merge).
---
tests/texturing/getteximage-depth.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/texturing/getteximage-depth.c b/tests/texturing/getteximage-depth.c
index 97977138e9d2..2986962631c6 100644
--- a/tests/texturing/getteximage-depth.c
+++ b/tests/texturing/getteximage-depth.c
@@ -605,7 +605,8 @@ piglit_init(int argc, char **argv)
continue;
break;
case GL_TEXTURE_CUBE_MAP:
- if (!piglit_is_extension_supported("GL_ARB_texture_cube_map"))
+ if (!piglit_is_extension_supported("GL_ARB_texture_cube_map") ||
+ piglit_get_gl_version() < 30)
continue;
break;
case GL_TEXTURE_1D_ARRAY:
--
2.11.0
More information about the Piglit
mailing list