summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/hint.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-05-23 20:10:49 +0000
committerBrian Paul <[email protected]>2000-05-23 20:10:49 +0000
commit1207bf057aeea3376e5e0f03f789a5d67ed4d29d (patch)
tree525453df0a3b76bef0ff6d3ddfd61345d51a376f /src/mesa/main/hint.c
parent35d5301a54153930ee6fd60dff1010ce9f901397 (diff)
initial work for GL_ARB_texture_compression
Diffstat (limited to 'src/mesa/main/hint.c')
-rw-r--r--src/mesa/main/hint.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/mesa/main/hint.c b/src/mesa/main/hint.c
index 3621176b37e..7fb0e743b06 100644
--- a/src/mesa/main/hint.c
+++ b/src/mesa/main/hint.c
@@ -1,4 +1,4 @@
-/* $Id: hint.c,v 1.3 2000/04/10 15:52:26 brianp Exp $ */
+/* $Id: hint.c,v 1.4 2000/05/23 20:10:50 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -121,13 +121,23 @@ _mesa_try_Hint( GLcontext *ctx, GLenum target, GLenum mode )
case GL_NATIVE_GRAPHICS_HANDLE_PGI:
break;
- /* GL_EXT_clip_volume_hint */
+ /* GL_EXT_clip_volume_hint */
case GL_CLIP_VOLUME_CLIPPING_HINT_EXT:
ctx->Hint.ClipVolumeClipping = mode;
break;
+ /* GL_ARB_texture_compression */
+ case GL_TEXTURE_COMPRESSION_HINT_ARB:
+ if (ctx->Extensions.HaveTextureCompression) {
+ ctx->Hint.TextureCompression = mode;
+ }
+ else {
+ gl_error(ctx, GL_INVALID_ENUM, "glHint(target)");
+ }
+ break;
+
default:
- gl_error( ctx, GL_INVALID_ENUM, "glHint(target)" );
+ gl_error(ctx, GL_INVALID_ENUM, "glHint(target)");
return GL_FALSE;
}