[Piglit] [PATCH] getteximage-depth: Fix failures on cubemap-supporting GL < 3.0.
Tapani Pälli
tapani.palli at intel.com
Tue Jan 3 09:30:26 UTC 2017
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 12/29/2016 09:15 PM, Eric Anholt wrote:
> 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:
>
More information about the Piglit
mailing list