aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-06-15 14:18:46 +0000
committerBrian Paul <[email protected]>2001-06-15 14:18:46 +0000
commite4276667dafc8de0c6e64af8300fc7598437de6e (patch)
tree64045f32665046d09c91138bdc9369083bc1ed31 /src/mesa/main/state.c
parent65c6ca91795a71cf38dbe5f49f2d73fd9d4049cd (diff)
Enable GL_ARB_texture_compression for XMesa/GLX driver. Texture
compression isn't really implmented. Just updated glTexImageXD() to accept compressed internal format tokens.
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 6b7682144dd..124770df3de 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -1,4 +1,4 @@
-/* $Id: state.c,v 1.66 2001/05/29 15:23:49 brianp Exp $ */
+/* $Id: state.c,v 1.67 2001/06/15 14:18:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -978,14 +978,16 @@ void _mesa_update_state( GLcontext *ctx )
ASSERT(ctx->Driver.CopyTexSubImage2D);
ASSERT(ctx->Driver.CopyTexSubImage3D);
if (ctx->Extensions.ARB_texture_compression) {
+ ASSERT(ctx->Driver.BaseCompressedTexFormat);
+ ASSERT(ctx->Driver.CompressedTextureSize);
+ ASSERT(ctx->Driver.GetCompressedTexImage);
+#if 0 /* HW drivers need these, but not SW rasterizers */
ASSERT(ctx->Driver.CompressedTexImage1D);
ASSERT(ctx->Driver.CompressedTexImage2D);
ASSERT(ctx->Driver.CompressedTexImage3D);
ASSERT(ctx->Driver.CompressedTexSubImage1D);
ASSERT(ctx->Driver.CompressedTexSubImage2D);
ASSERT(ctx->Driver.CompressedTexSubImage3D);
- ASSERT(ctx->Driver.IsCompressedFormat);
- ASSERT(ctx->Driver.GetCompressedTexImage);
- ASSERT(ctx->Driver.BaseCompressedTexFormat);
+#endif
}
}