From 1207bf057aeea3376e5e0f03f789a5d67ed4d29d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 23 May 2000 20:10:49 +0000 Subject: initial work for GL_ARB_texture_compression --- src/mesa/main/hint.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/hint.c') diff --git a/src/mesa/main/hint.c b/src/mesa/main/hint.c index 3621176b37..7fb0e743b0 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; } -- cgit v1.2.3