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

Brian Paul brianp at vmware.com
Mon Jan 28 11:59:34 PST 2013


On 01/28/2013 11:56 AM, Ian Romanick wrote:
> 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;

How about I do that in a follow-on patch since it would effect other 
extension enables?

-Brian



More information about the mesa-dev mailing list