diff options
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index f1870415f30..5fcc44e8e58 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1,10 +1,10 @@ -/* $Id: enable.c,v 1.42 2001/02/16 18:14:41 keithw Exp $ */ +/* $Id: enable.c,v 1.43 2001/02/27 22:33:59 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 3.5 * - * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -238,7 +238,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) ctx->_Enabled ^= ENABLE_FOG; break; case GL_HISTOGRAM: - if (!ctx->Extensions.EXT_histogram) { + if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) { gl_error(ctx, GL_INVALID_ENUM, "glEnable(GL_HISTOGRAM)"); return; } @@ -643,7 +643,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) /* GL_SGI_color_table */ case GL_COLOR_TABLE_SGI: - if (!ctx->Extensions.SGI_color_table) { + if (!ctx->Extensions.SGI_color_table && !ctx->Extensions.ARB_imaging) { gl_error( ctx, GL_INVALID_ENUM, state ? "glEnable": "glDisable" ); return; } @@ -653,7 +653,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) ctx->Pixel.ColorTableEnabled = state; break; case GL_POST_CONVOLUTION_COLOR_TABLE_SGI: - if (!ctx->Extensions.SGI_color_table) { + if (!ctx->Extensions.SGI_color_table && !ctx->Extensions.ARB_imaging) { gl_error( ctx, GL_INVALID_ENUM, state ? "glEnable": "glDisable" ); return; } @@ -663,7 +663,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) ctx->Pixel.PostConvolutionColorTableEnabled = state; break; case GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI: - if (!ctx->Extensions.SGI_color_table) { + if (!ctx->Extensions.SGI_color_table && !ctx->Extensions.ARB_imaging) { gl_error( ctx, GL_INVALID_ENUM, state ? "glEnable": "glDisable" ); return; } @@ -675,7 +675,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) /* GL_EXT_convolution */ case GL_CONVOLUTION_1D: - if (!ctx->Extensions.EXT_convolution) { + if (!ctx->Extensions.EXT_convolution && !ctx->Extensions.ARB_imaging) { gl_error(ctx, GL_INVALID_ENUM, state ? "glEnable" : "glDisable"); return; } @@ -685,7 +685,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) ctx->Pixel.Convolution1DEnabled = state; break; case GL_CONVOLUTION_2D: - if (!ctx->Extensions.EXT_convolution) { + if (!ctx->Extensions.EXT_convolution && !ctx->Extensions.ARB_imaging) { gl_error(ctx, GL_INVALID_ENUM, state ? "glEnable" : "glDisable"); return; } @@ -695,7 +695,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) ctx->Pixel.Convolution2DEnabled = state; break; case GL_SEPARABLE_2D: - if (!ctx->Extensions.EXT_convolution) { + if (!ctx->Extensions.EXT_convolution && !ctx->Extensions.ARB_imaging) { gl_error(ctx, GL_INVALID_ENUM, state ? "glEnable" : "glDisable"); return; } @@ -818,7 +818,7 @@ _mesa_IsEnabled( GLenum cap ) case GL_FOG: return ctx->Fog.Enabled; case GL_HISTOGRAM: - if (ctx->Extensions.EXT_histogram) { + if (ctx->Extensions.EXT_histogram || ctx->Extensions.ARB_imaging) { return ctx->Pixel.HistogramEnabled; } else { |