[Mesa-dev] [PATCH] xlib: fix incorrect GL_ANGLE_texture_compression_dxt enable

Ian Romanick idr at freedesktop.org
Mon Jan 28 10:56:22 PST 2013


On 01/28/2013 10:46 AM, Brian Paul wrote:
> ---
>   src/mesa/drivers/x11/xm_api.c |    3 ++-
>   1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
> index 5931f5b..739e8ac 100644
> --- a/src/mesa/drivers/x11/xm_api.c
> +++ b/src/mesa/drivers/x11/xm_api.c
> @@ -929,7 +929,8 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
>      _mesa_enable_2_1_extensions(mesaCtx);
>       if (mesaCtx->Mesa_DXTn) {
>          _mesa_enable_extension(mesaCtx, "GL_EXT_texture_compression_s3tc");
> -       _mesa_enable_extension(mesaCtx, "GL_ANGLE_texture_compression_dxt");
> +       _mesa_enable_extension(mesaCtx, "GL_ANGLE_texture_compression_dxt3");
> +       _mesa_enable_extension(mesaCtx, "GL_ANGLE_texture_compression_dxt5");

We could probably switch this to use the new style extension enable:

       mesaCtx->Extensions.EXT_texture_compression_s3tc = true;
       mesaCtx->Extensions.ANGLE_texture_compression_dxt = true;

>       }
>       _mesa_enable_extension(mesaCtx, "GL_3DFX_texture_compression_FXT1");
>   #if ENABLE_EXT_timer_query
>



More information about the mesa-dev mailing list