summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-12-09 19:55:18 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-12-09 19:55:18 +0000
commit2e5819270b4d4283d060fc821cde22be4b40d1ad (patch)
tree53385ff82e857b44461077705f56f414d8fcad49
parentec15398681249fca439794de03bf2a89d04f6c55 (diff)
added GL_RESCALE_NORMAL cases
-rw-r--r--src/mesa/main/get.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 72b8c7a460..2f0ba00020 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1,4 +1,4 @@
-/* $Id: get.c,v 1.45 2000/12/08 00:20:15 brianp Exp $ */
+/* $Id: get.c,v 1.46 2000/12/09 19:55:18 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -744,6 +744,9 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
case GL_RENDER_MODE:
*params = ENUM_TO_BOOL(ctx->RenderMode);
break;
+ case GL_RESCALE_NORMAL:
+ *params = ctx->Transform.RescaleNormals;
+ break;
case GL_RGBA_MODE:
*params = ctx->Visual.RGBAflag;
break;
@@ -1953,6 +1956,9 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params )
case GL_RENDER_MODE:
*params = ENUM_TO_DOUBLE(ctx->RenderMode);
break;
+ case GL_RESCALE_NORMAL:
+ *params = (GLdouble) ctx->Transform.RescaleNormals;
+ break;
case GL_RGBA_MODE:
*params = (GLdouble) ctx->Visual.RGBAflag;
break;
@@ -3164,6 +3170,9 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
case GL_RENDER_MODE:
*params = ENUM_TO_FLOAT(ctx->RenderMode);
break;
+ case GL_RESCALE_NORMAL:
+ *params = (GLfloat) ctx->Transform.RescaleNormals;
+ break;
case GL_RGBA_MODE:
*params = (GLfloat) ctx->Visual.RGBAflag;
break;
@@ -4347,6 +4356,9 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
case GL_RENDER_MODE:
*params = (GLint) ctx->RenderMode;
break;
+ case GL_RESCALE_NORMAL:
+ *params = (GLint) ctx->Transform.RescaleNormals;
+ break;
case GL_RGBA_MODE:
*params = (GLint) ctx->Visual.RGBAflag;
break;