summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rwxr-xr-xsrc/mesa/drivers/dri/intel/intel_extensions.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 78b928db53d..d760f3031ba 100755
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -177,13 +177,11 @@ intelInitExtensions(struct gl_context *ctx)
ctx->Extensions.ARB_occlusion_query = true;
}
- if (intel->ctx.Mesa_DXTn) {
- ctx->Extensions.ANGLE_texture_compression_dxt = true;
+ if (intel->ctx.Mesa_DXTn
+ || driQueryOptionb(&intel->optionCache, "force_s3tc_enable"))
ctx->Extensions.EXT_texture_compression_s3tc = true;
- }
- else if (driQueryOptionb(&intel->optionCache, "force_s3tc_enable")) {
- ctx->Extensions.EXT_texture_compression_s3tc = true;
- }
+
+ ctx->Extensions.ANGLE_texture_compression_dxt = true;
if (intel->gen >= 4) {
ctx->Extensions.NV_primitive_restart = true;