summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_s3tc.c
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-10-29 14:59:42 +0800
committerBrian Paul <brianp@vmware.com>2009-10-29 07:52:58 -0600
commit59798cd8864b601e035cf2414517cd90d24ed786 (patch)
tree8bc1b44d4f2d492da4a3ae6596e24aa08152bbf8 /src/mesa/main/texcompress_s3tc.c
parent20e20fc5afa7525e247fd607e04d9adfffe730b4 (diff)
downloadexternal_mesa3d-59798cd8864b601e035cf2414517cd90d24ed786.zip
external_mesa3d-59798cd8864b601e035cf2414517cd90d24ed786.tar.gz
external_mesa3d-59798cd8864b601e035cf2414517cd90d24ed786.tar.bz2
mesa/main: Make FEATURE_texture_s3tc follow feature conventions.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/mesa/main/texcompress_s3tc.c')
-rw-r--r--src/mesa/main/texcompress_s3tc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/texcompress_s3tc.c b/src/mesa/main/texcompress_s3tc.c
index 9fc73fe..b271a53 100644
--- a/src/mesa/main/texcompress_s3tc.c
+++ b/src/mesa/main/texcompress_s3tc.c
@@ -44,6 +44,10 @@
#include "texcompress_s3tc.h"
#include "texstore.h"
+
+#if FEATURE_texture_s3tc
+
+
#ifdef __MINGW32__
#define DXTN_LIBNAME "dxtn.dll"
#define RTLD_LAZY 0
@@ -564,5 +568,7 @@ _mesa_fetch_texel_2d_f_srgba_dxt5(const struct gl_texture_image *texImage,
texel[BCOMP] = nonlinear_to_linear(rgba[BCOMP]);
texel[ACOMP] = CHAN_TO_FLOAT(rgba[ACOMP]);
}
-#endif
+#endif /* FEATURE_EXT_texture_sRGB */
+
+#endif /* FEATURE_texture_s3tc */