<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 14, 2015 at 11:17 AM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">From: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com" target="_blank">nanley.g.chery@intel.com</a>><br>
<br>
According the GL 3.1 spec, luminance alpha formats are deprecated.<br>
<br>
Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com" target="_blank">nanley.g.chery@intel.com</a>><br>
---<br>
 src/mesa/main/extensions.c | 4 ++--<br>
 src/mesa/main/teximage.c   | 6 ++++--<br>
 2 files changed, 6 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c<br>
index 1f7d542..b2c88c3 100644<br>
--- a/src/mesa/main/extensions.c<br>
+++ b/src/mesa/main/extensions.c<br>
@@ -263,7 +263,7 @@ static const struct extension extension_table[] = {<br>
    { "GL_EXT_texture_compression_dxt1",            o(ANGLE_texture_compression_dxt),           GL | ES1 | ES2, 2004 },<br>
    { "GL_ANGLE_texture_compression_dxt3",          o(ANGLE_texture_compression_dxt),           GL | ES1 | ES2, 2011 },<br>
    { "GL_ANGLE_texture_compression_dxt5",          o(ANGLE_texture_compression_dxt),           GL | ES1 | ES2, 2011 },<br>
-   { "GL_EXT_texture_compression_latc",            o(EXT_texture_compression_latc),            GL,             2006 },<br>
+   { "GL_EXT_texture_compression_latc",            o(EXT_texture_compression_latc),            GLL,            2006 },<br>
    { "GL_EXT_texture_compression_rgtc",            o(ARB_texture_compression_rgtc),            GL,             2004 },<br>
    { "GL_EXT_texture_compression_s3tc",            o(EXT_texture_compression_s3tc),            GL,             2000 },<br>
    { "GL_EXT_texture_cube_map",                    o(ARB_texture_cube_map),                    GLL,            2001 },<br>
@@ -366,7 +366,7 @@ static const struct extension extension_table[] = {<br>
    { "GL_ATI_draw_buffers",                        o(dummy_true),                              GLL,            2002 },<br>
    { "GL_ATI_fragment_shader",                     o(ATI_fragment_shader),                     GLL,            2001 },<br>
    { "GL_ATI_separate_stencil",                    o(ATI_separate_stencil),                    GLL,            2006 },<br>
-   { "GL_ATI_texture_compression_3dc",             o(ATI_texture_compression_3dc),             GL,             2004 },<br>
+   { "GL_ATI_texture_compression_3dc",             o(ATI_texture_compression_3dc),             GLL,            2004 },<br>
    { "GL_ATI_texture_env_combine3",                o(ATI_texture_env_combine3),                GLL,            2002 },<br>
    { "GL_ATI_texture_float",                       o(ARB_texture_float),                       GL,             2002 },<br>
    { "GL_ATI_texture_mirror_once",                 o(ATI_texture_mirror_once),                 GL,             2006 },<br>
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c<br>
index bfb0858..ff844cd 100644<br>
--- a/src/mesa/main/teximage.c<br>
+++ b/src/mesa/main/teximage.c<br>
@@ -534,7 +534,8 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat )<br>
       }<br>
    }<br>
<br>
-   if (ctx->Extensions.EXT_texture_compression_latc) {<br>
+   if (ctx->API == API_OPENGL_COMPAT &&<br>
+       ctx->Extensions.EXT_texture_compression_latc) {<br>
       switch (internalFormat) {<br>
       case GL_COMPRESSED_LUMINANCE_LATC1_EXT:<br>
       case GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT:<br>
@@ -547,7 +548,8 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat )<br>
       }<br>
    }<br>
<br>
-   if (ctx->Extensions.ATI_texture_compression_3dc) {<br>
+   if (ctx->API == API_OPENGL_COMPAT &&<br>
+       ctx->Extensions.ATI_texture_compression_3dc) {<br>
       switch (internalFormat) {<br>
       case GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI:<br>
          return GL_LUMINANCE_ALPHA;<br>
<span><font color="#888888">--<br>
2.5.1<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Reviewed-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.com</a>><br></div></div>