[Mesa-stable] [Mesa-dev] [PATCH 6.5/15] mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats

Marek Olšák maraeo at gmail.com
Wed Jun 11 12:54:21 PDT 2014


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Wed, Jun 11, 2014 at 9:02 PM, Anuj Phogat <anuj.phogat at gmail.com> wrote:
> GL_TEXTURE_CUBE_MAP is an allowed texture target in glTexStorage2D()
> and is allowed to be used (like GL_TEXTURE_2D) with compressed internal
> formats.
>
> Cc: <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
>  src/mesa/main/teximage.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index a09d994..8f50b51 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -1790,6 +1790,7 @@ _mesa_target_can_be_compressed(const struct gl_context *ctx, GLenum target,
>     case GL_PROXY_TEXTURE_2D:
>        return GL_TRUE; /* true for any compressed format so far */
>     case GL_PROXY_TEXTURE_CUBE_MAP:
> +   case GL_TEXTURE_CUBE_MAP:
>     case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
>     case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
>     case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
> --
> 1.8.3.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-stable mailing list