summaryrefslogtreecommitdiff
path: root/xc/extras/Mesa/src/hint.c
diff options
context:
space:
mode:
Diffstat (limited to 'xc/extras/Mesa/src/hint.c')
-rw-r--r--xc/extras/Mesa/src/hint.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/xc/extras/Mesa/src/hint.c b/xc/extras/Mesa/src/hint.c
index 7f8d88b76..6537bd004 100644
--- a/xc/extras/Mesa/src/hint.c
+++ b/xc/extras/Mesa/src/hint.c
@@ -120,13 +120,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;
}