summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-04-01 19:07:35 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-04-01 19:07:35 +0000
commit12fca20e1f2fe38a6ccedae8ab097b71d8a4ed8e (patch)
tree63c4081aa9be224b73fd8896daf8dd679e58cf04
parentb852f048ee01b8ccbc8834139d46ab2bd9cb1f1b (diff)
added GL_FRAGMENT_PROGRAM_NV (Alan Matsuoka)
-rw-r--r--src/mesa/main/get.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 68508c7738..cbbc0d60d0 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1,4 +1,4 @@
-/* $Id: get.c,v 1.109 2003/04/01 18:27:07 brianp Exp $ */
+/* $Id: get.c,v 1.110 2003/04/01 19:07:35 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1469,6 +1469,10 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
#endif /* FEATURE_NV_vertex_program */
#if FEATURE_NV_fragment_program
+ case GL_FRAGMENT_PROGRAM_NV:
+ CHECK_EXTENSION_B(NV_fragment_program, pname);
+ *params = ctx->FragmentProgram.Enabled;
+ break;
case GL_MAX_TEXTURE_COORDS_NV:
CHECK_EXTENSION_B(NV_fragment_program, pname);
*params = INT_TO_BOOL(ctx->Const.MaxTextureCoordUnits);
@@ -2876,6 +2880,10 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params )
#endif /* FEATURE_NV_vertex_program */
#if FEATURE_NV_fragment_program
+ case GL_FRAGMENT_PROGRAM_NV:
+ CHECK_EXTENSION_D(NV_fragment_program, pname);
+ *params = (GLdouble) ctx->FragmentProgram.Enabled;
+ break;
case GL_MAX_TEXTURE_COORDS_NV:
CHECK_EXTENSION_B(NV_fragment_program, pname);
*params = (GLdouble) ctx->Const.MaxTextureCoordUnits;
@@ -4258,6 +4266,10 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
#endif /* FEATURE_NV_vertex_program */
#if FEATURE_NV_fragment_program
+ case GL_FRAGMENT_PROGRAM_NV:
+ CHECK_EXTENSION_F(NV_fragment_program, pname);
+ *params = (GLfloat) ctx->FragmentProgram.Enabled;
+ break;
case GL_MAX_TEXTURE_COORDS_NV:
CHECK_EXTENSION_F(NV_fragment_program, pname);
*params = (GLfloat) ctx->Const.MaxTextureCoordUnits;
@@ -5678,6 +5690,10 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
#endif /* FEATURE_NV_vertex_program */
#if FEATURE_NV_fragment_program
+ case GL_FRAGMENT_PROGRAM_NV:
+ CHECK_EXTENSION_I(NV_fragment_program, pname);
+ *params = (GLint) ctx->FragmentProgram.Enabled;
+ break;
case GL_MAX_TEXTURE_COORDS_NV:
CHECK_EXTENSION_I(NV_fragment_program, pname);
*params = (GLint) ctx->Const.MaxTextureCoordUnits;