summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-12 13:24:20 -0600
committerChia-I Wu <olvaffe@gmail.com>2009-09-12 20:56:01 +0800
commit610e200429ddfd15f8943a609e1a8910566ee639 (patch)
tree636127b9242c7690217bcd530c2d2729db55310c /src/mesa/state_tracker
parentde8b4f3bbd721ac3187d918f74375b873d43c5c7 (diff)
st: added preprocessor test for FEATURE_texture_s3tc
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index abaf9d2c35..462f105e75 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -120,6 +120,7 @@ static GLboolean
is_compressed_mesa_format(const struct gl_texture_format *format)
{
switch (format->MesaFormat) {
+#if FEATURE_texture_s3tc
case MESA_FORMAT_RGB_DXT1:
case MESA_FORMAT_RGBA_DXT1:
case MESA_FORMAT_RGBA_DXT3:
@@ -129,6 +130,7 @@ is_compressed_mesa_format(const struct gl_texture_format *format)
case MESA_FORMAT_SRGBA_DXT3:
case MESA_FORMAT_SRGBA_DXT5:
return GL_TRUE;
+#endif
default:
return GL_FALSE;
}