diff options
author | Eric Anholt <eric@anholt.net> | 2016-04-18 15:16:27 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-01-03 10:53:32 -0800 |
commit | 4cd9567ce50a4ee192cc803ad168a61db99878b6 (patch) | |
tree | 348511b1f1fad409f6d7ca91e703a5b4196d0ad8 | |
parent | e5a6668fb4c81c25ef7faaf9f0f6330e02630ea1 (diff) |
getteximage-depth: Fix failures on cubemap-supporting GL < 3.0.
You don't get to specify depth cubes until 3.0 (GL_EXT_gpu_shader4
merge).
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
-rw-r--r-- | tests/texturing/getteximage-depth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/texturing/getteximage-depth.c b/tests/texturing/getteximage-depth.c index 97977138e..298696263 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: |