-/* $Id: context.c,v 1.40 2000/02/02 22:21:39 brianp Exp $ */
+/* $Id: context.c,v 1.41 2000/02/03 15:33:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
ctx->Const.MaxTextureSize = 1 << (MAX_TEXTURE_LEVELS - 1);
ctx->Const.MaxTextureUnits = MAX_TEXTURE_UNITS;
ctx->Const.MaxArrayLockSize = MAX_ARRAY_LOCK_SIZE;
+ ctx->Const.SubPixelBits = 4;
/* Modelview matrix */
gl_matrix_ctr( &ctx->ModelView );
-/* $Id: get.c,v 1.8 2000/01/17 18:05:46 brianp Exp $ */
+/* $Id: get.c,v 1.9 2000/02/03 15:33:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
*params = ctx->Visual->StereoFlag;
break;
case GL_SUBPIXEL_BITS:
- *params = INT_TO_BOOL(0); /* TODO */
+ *params = INT_TO_BOOL(ctx->Const.SubPixelBits);
break;
case GL_TEXTURE_1D:
*params = _mesa_IsEnabled(GL_TEXTURE_1D );
*params = (GLdouble) ctx->Visual->StereoFlag;
break;
case GL_SUBPIXEL_BITS:
- *params = 0.0; /* TODO */
+ *params = (GLdouble) ctx->Const.SubPixelBits;
break;
case GL_TEXTURE_1D:
*params = _mesa_IsEnabled(GL_TEXTURE_1D) ? 1.0 : 0.0;
*params = (GLfloat) ctx->Visual->StereoFlag;
break;
case GL_SUBPIXEL_BITS:
- *params = 0.0F; /* TODO */
+ *params = (GLfloat) ctx->Const.SubPixelBits;
break;
case GL_TEXTURE_1D:
*params = _mesa_IsEnabled(GL_TEXTURE_1D) ? 1.0 : 0.0;
*params = (GLint) ctx->Visual->StereoFlag;
break;
case GL_SUBPIXEL_BITS:
- *params = 0; /* TODO */
+ *params = ctx->Const.SubPixelBits;
break;
case GL_TEXTURE_1D:
*params = _mesa_IsEnabled(GL_TEXTURE_1D) ? 1 : 0;