Commit ea083a8b authored by Brian Paul's avatar Brian Paul
Browse files

added GL_RESCALE_NORMAL cases

parent 3b20dc1d
/* $Id: get.c,v 1.30.2.2 2000/11/26 21:10:26 brianp Exp $*/ /* $Id: get.c,v 1.30.2.3 2000/12/09 19:55:58 brianp Exp $*/
/* /*
* Mesa 3-D graphics library * Mesa 3-D graphics library
...@@ -731,6 +731,9 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params ) ...@@ -731,6 +731,9 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
case GL_RENDER_MODE: case GL_RENDER_MODE:
*params = ENUM_TO_BOOL(ctx->RenderMode); *params = ENUM_TO_BOOL(ctx->RenderMode);
break; break;
case GL_RESCALE_NORMAL:
*params = ctx->Transform.RescaleNormals;
break;
case GL_RGBA_MODE: case GL_RGBA_MODE:
*params = ctx->Visual->RGBAflag; *params = ctx->Visual->RGBAflag;
break; break;
...@@ -1968,6 +1971,9 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params ) ...@@ -1968,6 +1971,9 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params )
case GL_RENDER_MODE: case GL_RENDER_MODE:
*params = ENUM_TO_DOUBLE(ctx->RenderMode); *params = ENUM_TO_DOUBLE(ctx->RenderMode);
break; break;
case GL_RESCALE_NORMAL:
*params = (GLdouble) ctx->Transform.RescaleNormals;
break;
case GL_RGBA_MODE: case GL_RGBA_MODE:
*params = (GLdouble) ctx->Visual->RGBAflag; *params = (GLdouble) ctx->Visual->RGBAflag;
break; break;
...@@ -3204,6 +3210,9 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params ) ...@@ -3204,6 +3210,9 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
case GL_RENDER_MODE: case GL_RENDER_MODE:
*params = ENUM_TO_FLOAT(ctx->RenderMode); *params = ENUM_TO_FLOAT(ctx->RenderMode);
break; break;
case GL_RESCALE_NORMAL:
*params = (GLfloat) ctx->Transform.RescaleNormals;
break;
case GL_RGBA_MODE: case GL_RGBA_MODE:
*params = (GLfloat) ctx->Visual->RGBAflag; *params = (GLfloat) ctx->Visual->RGBAflag;
break; break;
...@@ -4415,6 +4424,9 @@ _mesa_GetIntegerv( GLenum pname, GLint *params ) ...@@ -4415,6 +4424,9 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
case GL_RENDER_MODE: case GL_RENDER_MODE:
*params = (GLint) ctx->RenderMode; *params = (GLint) ctx->RenderMode;
break; break;
case GL_RESCALE_NORMAL:
*params = (GLint) ctx->Transform.RescaleNormals;
break;
case GL_RGBA_MODE: case GL_RGBA_MODE:
*params = (GLint) ctx->Visual->RGBAflag; *params = (GLint) ctx->Visual->RGBAflag;
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment