summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-02-06 03:10:45 +0000
committerBrian Paul <[email protected]>2000-02-06 03:10:45 +0000
commitd21f13cb05824023aa54804933d77c014d4d888a (patch)
treec51de7b3be6f84597d8b4a35c0f20e067477ca2b /src/mesa/main
parentf1b26953e8cea687681c940f4d223f2adfaba3ec (diff)
added missing glGet cases for GL_EXT_compiled_vertex_array
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/get.c31
1 files changed, 26 insertions, 5 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index c41be897697..f3624616a7d 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1,4 +1,4 @@
-/* $Id: get.c,v 1.5.2.3 2000/02/05 01:52:23 brianp Exp $ */
+/* $Id: get.c,v 1.5.2.4 2000/02/06 03:10:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -971,6 +971,15 @@ void gl_GetBooleanv( GLcontext *ctx, GLenum pname, GLboolean *params )
case GL_NATIVE_GRAPHICS_HANDLE_PGI:
*params = 0;
break;
+
+ /* GL_EXT_compiled_vertex_array */
+ case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT:
+ *params = ctx->Array.LockFirst ? GL_TRUE : GL_FALSE;
+ break;
+ case GL_ARRAY_ELEMENT_LOCK_COUNT_EXT:
+ *params = ctx->Array.LockCount ? GL_TRUE : GL_FALSE;
+ break;
+
default:
printf("invalid enum: %x\n", pname);
gl_error( ctx, GL_INVALID_ENUM, "glGetBooleanv" );
@@ -1886,7 +1895,13 @@ void gl_GetDoublev( GLcontext *ctx, GLenum pname, GLdouble *params )
*params = 0;
break;
-
+ /* GL_EXT_compiled_vertex_array */
+ case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT:
+ *params = (GLdouble) ctx->Array.LockFirst;
+ break;
+ case GL_ARRAY_ELEMENT_LOCK_COUNT_EXT:
+ *params = (GLdouble) ctx->Array.LockCount;
+ break;
default:
printf("invalid enum: %x\n", pname);
@@ -2799,6 +2814,14 @@ void gl_GetFloatv( GLcontext *ctx, GLenum pname, GLfloat *params )
*params = 0;
break;
+ /* GL_EXT_compiled_vertex_array */
+ case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT:
+ *params = (GLfloat) ctx->Array.LockFirst;
+ break;
+ case GL_ARRAY_ELEMENT_LOCK_COUNT_EXT:
+ *params = (GLfloat) ctx->Array.LockCount;
+ break;
+
default:
printf("invalid enum: %x\n", pname);
gl_error( ctx, GL_INVALID_ENUM, "glGetFloatv" );
@@ -3715,12 +3738,10 @@ void gl_GetIntegerv( GLcontext *ctx, GLenum pname, GLint *params )
*params = 0;
break;
- /* GL_EXT_compiled_vertex_array
- */
+ /* GL_EXT_compiled_vertex_array */
case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT:
*params = ctx->Array.LockFirst;
break;
-
case GL_ARRAY_ELEMENT_LOCK_COUNT_EXT:
*params = ctx->Array.LockCount;
break;