-/* $Id: get.c,v 1.70 2001/10/22 22:45:18 brianp Exp $ */
+/* $Id: get.c,v 1.71 2001/10/25 23:21:28 brianp Exp $ */
/*
* Mesa 3-D graphics library
_mesa_error(ctx, GL_INVALID_ENUM, "glGetBooleanv");
return;
}
+ break;
case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = ctx->Multisample.SampleAlphaToCoverage;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetBooleanv");
return;
}
+ break;
case GL_SAMPLE_ALPHA_TO_ONE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = ctx->Multisample.SampleAlphaToOne;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetBooleanv");
return;
}
+ break;
case GL_SAMPLE_COVERAGE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = ctx->Multisample.SampleCoverage;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetBooleanv");
return;
}
+ break;
case GL_SAMPLE_COVERAGE_VALUE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = FLOAT_TO_BOOL(ctx->Multisample.SampleCoverageValue);
_mesa_error(ctx, GL_INVALID_ENUM, "glGetBooleanv");
return;
}
+ break;
case GL_SAMPLE_COVERAGE_INVERT_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = ctx->Multisample.SampleCoverageInvert;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetBooleanv");
return;
}
+ break;
case GL_SAMPLE_BUFFERS_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = 0; /* XXX fix someday */
_mesa_error(ctx, GL_INVALID_ENUM, "glGetBooleanv");
return;
}
+ break;
case GL_SAMPLES_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = 0; /* XXX fix someday */
_mesa_error(ctx, GL_INVALID_ENUM, "glGetBooleanv");
return;
}
+ break;
/* GL_IBM_rasterpos_clip */
case GL_RASTER_POSITION_UNCLIPPED_IBM:
_mesa_error(ctx, GL_INVALID_ENUM, "glGetBoolean");
return;
}
+ break;
/* GL_MESA_sprite_point */
case GL_SPRITE_POINT_MESA:
_mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev");
return;
}
+ break;
case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLdouble) ctx->Multisample.SampleAlphaToCoverage;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev");
return;
}
+ break;
case GL_SAMPLE_ALPHA_TO_ONE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLdouble) ctx->Multisample.SampleAlphaToOne;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev");
return;
}
+ break;
case GL_SAMPLE_COVERAGE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLdouble) ctx->Multisample.SampleCoverage;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev");
return;
}
+ break;
case GL_SAMPLE_COVERAGE_VALUE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = ctx->Multisample.SampleCoverageValue;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev");
return;
}
+ break;
case GL_SAMPLE_COVERAGE_INVERT_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLdouble) ctx->Multisample.SampleCoverageInvert;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev");
return;
}
+ break;
case GL_SAMPLE_BUFFERS_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = 0.0; /* XXX fix someday */
_mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev");
return;
}
+ break;
case GL_SAMPLES_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = 0.0; /* XXX fix someday */
_mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev");
return;
}
+ break;
/* GL_IBM_rasterpos_clip */
case GL_RASTER_POSITION_UNCLIPPED_IBM:
_mesa_error(ctx, GL_INVALID_ENUM, "glGetDoublev");
return;
}
+ break;
/* GL_MESA_sprite_point */
case GL_SPRITE_POINT_MESA:
GET_FLOAT_ERROR;
return;
}
+ break;
case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLfloat) ctx->Multisample.SampleAlphaToCoverage;
GET_FLOAT_ERROR;
return;
}
+ break;
case GL_SAMPLE_ALPHA_TO_ONE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLfloat) ctx->Multisample.SampleAlphaToOne;
GET_FLOAT_ERROR;
return;
}
+ break;
case GL_SAMPLE_COVERAGE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLfloat) ctx->Multisample.SampleCoverage;
GET_FLOAT_ERROR;
return;
}
+ break;
case GL_SAMPLE_COVERAGE_VALUE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = ctx->Multisample.SampleCoverageValue;
GET_FLOAT_ERROR;
return;
}
+ break;
case GL_SAMPLE_COVERAGE_INVERT_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLfloat) ctx->Multisample.SampleCoverageInvert;
GET_FLOAT_ERROR;
return;
}
+ break;
case GL_SAMPLE_BUFFERS_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = 0.0; /* XXX fix someday */
GET_FLOAT_ERROR;
return;
}
+ break;
case GL_SAMPLES_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = 0.0; /* XXX fix someday */
GET_FLOAT_ERROR;
return;
}
+ break;
/* GL_IBM_rasterpos_clip */
case GL_RASTER_POSITION_UNCLIPPED_IBM:
GET_FLOAT_ERROR;
return;
}
+ break;
/* GL_MESA_sprite_point */
case GL_SPRITE_POINT_MESA:
_mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv");
return;
}
+ break;
case GL_SAMPLE_ALPHA_TO_COVERAGE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLint) ctx->Multisample.SampleAlphaToCoverage;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv");
return;
}
+ break;
case GL_SAMPLE_ALPHA_TO_ONE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLint) ctx->Multisample.SampleAlphaToOne;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv");
return;
}
+ break;
case GL_SAMPLE_COVERAGE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLint) ctx->Multisample.SampleCoverage;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv");
return;
}
+ break;
case GL_SAMPLE_COVERAGE_VALUE_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLint) ctx->Multisample.SampleCoverageValue;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv");
return;
}
+ break;
case GL_SAMPLE_COVERAGE_INVERT_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = (GLint) ctx->Multisample.SampleCoverageInvert;
_mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv");
return;
}
+ break;
case GL_SAMPLE_BUFFERS_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = 0; /* XXX fix someday */
_mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv");
return;
}
+ break;
case GL_SAMPLES_ARB:
if (ctx->Extensions.ARB_multisample) {
*params = 0; /* XXX fix someday */
_mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv");
return;
}
+ break;
/* GL_IBM_rasterpos_clip */
case GL_RASTER_POSITION_UNCLIPPED_IBM:
_mesa_error(ctx, GL_INVALID_ENUM, "glGetIntegerv");
return;
}
+ break;
/* GL_MESA_sprite_point */
case GL_SPRITE_POINT_MESA: