-/* $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"),
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;
}
/* 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;
}
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;
}
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;
}
/* 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;
}
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;
}
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;
}
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 {
-/* $Id: get.c,v 1.53 2001/02/26 23:58:12 brianp Exp $ */
+/* $Id: get.c,v 1.54 2001/02/27 22:33:59 brianp Exp $ */
/*
* Mesa 3-D graphics library
/* GL_EXT_convolution (also in 1.2 imaging) */
case GL_CONVOLUTION_1D_EXT:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = ctx->Pixel.Convolution1DEnabled;
}
else {
}
break;
case GL_CONVOLUTION_2D:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = ctx->Pixel.Convolution2DEnabled;
}
else {
}
break;
case GL_SEPARABLE_2D:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = ctx->Pixel.Separable2DEnabled;
}
else {
*params = (GLdouble) ctx->Pixel.GreenScale;
break;
case GL_HISTOGRAM:
- if (ctx->Extensions.EXT_histogram) {
+ if (ctx->Extensions.EXT_histogram || ctx->Extensions.ARB_imaging) {
*params = (GLdouble) ctx->Pixel.HistogramEnabled;
}
else {
/* GL_EXT_convolution (also in 1.2 imaging) */
case GL_CONVOLUTION_1D_EXT:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = (GLdouble) ctx->Pixel.Convolution1DEnabled;
}
else {
}
break;
case GL_CONVOLUTION_2D:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = (GLdouble) ctx->Pixel.Convolution2DEnabled;
}
else {
}
break;
case GL_SEPARABLE_2D:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = (GLdouble) ctx->Pixel.Separable2DEnabled;
}
else {
*params = (GLfloat) ctx->Pixel.GreenScale;
break;
case GL_HISTOGRAM:
- if (ctx->Extensions.EXT_histogram) {
+ if (ctx->Extensions.EXT_histogram || ctx->Extensions.ARB_imaging) {
*params = (GLfloat) ctx->Pixel.HistogramEnabled;
}
else {
/* GL_EXT_convolution (also in 1.2 imaging) */
case GL_CONVOLUTION_1D_EXT:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = (GLfloat) ctx->Pixel.Convolution1DEnabled;
}
else {
}
break;
case GL_CONVOLUTION_2D:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = (GLfloat) ctx->Pixel.Convolution2DEnabled;
}
else {
}
break;
case GL_SEPARABLE_2D:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = (GLfloat) ctx->Pixel.Separable2DEnabled;
}
else {
*params = (GLint) ctx->Pixel.GreenScale;
break;
case GL_HISTOGRAM:
- if (ctx->Extensions.EXT_histogram) {
+ if (ctx->Extensions.EXT_histogram || ctx->Extensions.ARB_imaging) {
*params = (GLint) ctx->Pixel.HistogramEnabled;
}
else {
/* GL_EXT_convolution (also in 1.2 imaging) */
case GL_CONVOLUTION_1D_EXT:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = (GLint) ctx->Pixel.Convolution1DEnabled;
}
else {
}
break;
case GL_CONVOLUTION_2D:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = (GLint) ctx->Pixel.Convolution2DEnabled;
}
else {
}
break;
case GL_SEPARABLE_2D:
- if (ctx->Extensions.EXT_convolution) {
+ if (ctx->Extensions.EXT_convolution || ctx->Extensions.ARB_imaging) {
*params = (GLint) ctx->Pixel.Separable2DEnabled;
}
else {
case GL_VERSION:
return (const GLubyte *) version;
case GL_EXTENSIONS:
- return (const GLubyte *) _mesa_extensions_get_string( ctx );
+ return (const GLubyte *) _mesa_extensions_get_string(ctx);
default:
gl_error( ctx, GL_INVALID_ENUM, "glGetString" );
return (const GLubyte *) 0;
-/* $Id: histogram.c,v 1.7 2001/02/17 18:41:01 brianp Exp $ */
+/* $Id: histogram.c,v 1.8 2001/02/27 22:33:59 brianp Exp $ */
/*
* Mesa 3-D graphics library
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glGetMinmax");
return;
}
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glGetHistogram");
return;
}
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameterfv");
return;
}
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glGetHistogramParameteriv");
return;
}
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameterfv");
return;
}
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glGetMinmaxParameteriv");
return;
}
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx); /* sideeffects */
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glHistogram");
return;
}
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glMinmax");
return;
}
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx); /* sideeffects */
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glResetHistogram");
return;
}
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
- if (!ctx->Extensions.EXT_histogram) {
+ if (!ctx->Extensions.EXT_histogram && !ctx->Extensions.ARB_imaging) {
gl_error(ctx, GL_INVALID_OPERATION, "glResetMinmax");
return;
}