diff options
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/context.c | 3 | ||||
-rw-r--r-- | src/mesa/main/get.c | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 032a3ad659..70b9882b4f 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $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 @@ -739,6 +739,7 @@ static void init_attrib_groups( GLcontext *ctx ) 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 ); diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index ed7740becd..0ad26542f8 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1,4 +1,4 @@ -/* $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 @@ -742,7 +742,7 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) *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 ); @@ -1694,7 +1694,7 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) *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; @@ -2643,7 +2643,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) *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; @@ -3574,7 +3574,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) *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; |