[Mesa-stable] [Mesa-dev] [PATCH] mesa: Add GL_TEXTURE_CUBE_MAP_ARRAY to legal_get_tex_level_parameter_target()

Ian Romanick idr at freedesktop.org
Sat Feb 15 04:00:59 CET 2014


On 02/14/2014 05:31 PM, Anuj Phogat wrote:
> Fixes failing Khronos CTS test packed_depth_stencil_init.test
> 
> Cc: <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

> ---
>  src/mesa/main/texparam.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
> index b7ed50d..bbdbc27 100644
> --- a/src/mesa/main/texparam.c
> +++ b/src/mesa/main/texparam.c
> @@ -986,6 +986,9 @@ legal_get_tex_level_parameter_target(struct gl_context *ctx, GLenum target)
>     case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB:
>     case GL_PROXY_TEXTURE_CUBE_MAP_ARB:
>        return ctx->Extensions.ARB_texture_cube_map;
> +   case GL_TEXTURE_CUBE_MAP_ARRAY_ARB:
> +   case GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB:
> +      return ctx->Extensions.ARB_texture_cube_map_array;
>     case GL_TEXTURE_RECTANGLE_NV:
>     case GL_PROXY_TEXTURE_RECTANGLE_NV:
>        return ctx->Extensions.NV_texture_rectangle;
> 



More information about the mesa-stable mailing list