[Mesa-dev] [PATCH 1/2] st/mesa: advertise ANGLE_texture_compression_dxt3 and 5 for GLES2

Marek Olšák maraeo at gmail.com
Fri Jan 18 17:55:20 PST 2013


---
 src/mesa/state_tracker/st_extensions.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 17fe16e..aa70d5e 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -460,6 +460,10 @@ void st_init_extensions(struct st_context *st)
           PIPE_FORMAT_DXT3_RGBA,
           PIPE_FORMAT_DXT5_RGBA } },
 
+      { { o(ANGLE_texture_compression_dxt) },
+        { PIPE_FORMAT_DXT3_RGBA,
+          PIPE_FORMAT_DXT5_RGBA } },
+
       { { o(EXT_texture_shared_exponent) },
         { PIPE_FORMAT_R9G9B9E5_FLOAT } },
 
@@ -611,6 +615,7 @@ void st_init_extensions(struct st_context *st)
 
    if (!ctx->Mesa_DXTn && !st_get_s3tc_override()) {
       ctx->Extensions.EXT_texture_compression_s3tc = GL_FALSE;
+      ctx->Extensions.ANGLE_texture_compression_dxt = GL_FALSE;
       ctx->Extensions.S3_s3tc = GL_FALSE;
    }
 
-- 
1.7.10.4



More information about the mesa-dev mailing list