[Mesa-dev] [PATCH 2/6] mesa/glformats: restrict ETC1_RGB8 support to GLES1/2

Anuj Phogat anuj.phogat at gmail.com
Fri Sep 11 15:11:43 PDT 2015


On Fri, Aug 28, 2015 at 7:50 AM, Nanley Chery <nanleychery at gmail.com> wrote:

> From: Nanley Chery <nanley.g.chery at intel.com>
>
> According to the extensions table and our glext headers,
> OES_compressed_ETC1_RGB8_texture is only supported in
> GLES1 and GLES2.
>
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
>  src/mesa/main/teximage.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 33b3def..39d1281 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -558,7 +558,8 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint
> internalFormat )
>        }
>     }
>
> -   if (ctx->Extensions.OES_compressed_ETC1_RGB8_texture) {
> +   if (_mesa_is_gles(ctx) &&
> +      ctx->Extensions.OES_compressed_ETC1_RGB8_texture) {
>        switch (internalFormat) {
>        case GL_ETC1_RGB8_OES:
>           return GL_RGB;
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150911/41907619/attachment.html>


More information about the mesa-dev mailing list