summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-12-20 08:08:15 +0000
committerDaniel Borca <[email protected]>2004-12-20 08:08:15 +0000
commit0d7da6c3e00b62be901645418c2d525ec7b1a341 (patch)
tree2a45303193816e5de73a79d08b2dba3832a6d3c2 /src/mesa/main/get.c
parent2982dce27e242c89e4bc99979a878263df33ad2f (diff)
allow ARB vp/fp query program errors
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index bbedf4cbd95..df6b91ef499 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1440,7 +1440,7 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
*params = GL_FALSE;
break;
case GL_PROGRAM_ERROR_POSITION_NV:
- CHECK_EXTENSION_B(NV_vertex_program, pname);
+ CHECK_EXTENSION2_B(NV_vertex_program, ARB_vertex_program, pname);
*params = (ctx->Program.ErrorPos != 0) ? GL_TRUE : GL_FALSE;
break;
case GL_VERTEX_ATTRIB_ARRAY0_NV:
@@ -3076,7 +3076,7 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params )
*params = 0.0;
break;
case GL_PROGRAM_ERROR_POSITION_NV:
- CHECK_EXTENSION_D(NV_vertex_program, pname);
+ CHECK_EXTENSION2_D(NV_vertex_program, ARB_vertex_program, pname);
*params = (GLdouble) ctx->Program.ErrorPos;
break;
case GL_VERTEX_ATTRIB_ARRAY0_NV:
@@ -3365,7 +3365,6 @@ _mesa_GetDoublev( GLenum pname, GLdouble *params )
*params = (GLdouble) ctx->Const.ColorReadFormat;
return;
-
#if FEATURE_ATI_fragment_shader
case GL_NUM_FRAGMENT_REGISTERS_ATI:
CHECK_EXTENSION_D(ATI_fragment_shader, pname);
@@ -4689,7 +4688,7 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
*params = 0.0;
break;
case GL_PROGRAM_ERROR_POSITION_NV:
- CHECK_EXTENSION_F(NV_vertex_program, pname);
+ CHECK_EXTENSION2_F(NV_vertex_program, ARB_vertex_program, pname);
*params = (GLfloat) ctx->Program.ErrorPos;
break;
case GL_VERTEX_ATTRIB_ARRAY0_NV:
@@ -6338,7 +6337,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
*params = 0;
break;
case GL_PROGRAM_ERROR_POSITION_NV:
- CHECK_EXTENSION_I(NV_vertex_program, pname);
+ CHECK_EXTENSION2_I(NV_vertex_program, ARB_vertex_program, pname);
*params = (GLint) ctx->Program.ErrorPos;
break;
case GL_VERTEX_ATTRIB_ARRAY0_NV:
@@ -6853,9 +6852,13 @@ _mesa_GetString( GLenum name )
if (!ctx->Extensions.String)
ctx->Extensions.String = _mesa_make_extension_string(ctx);
return (const GLubyte *) ctx->Extensions.String;
-#if FEATURE_NV_fragment_program
+#if FEATURE_NV_fragment_program || FEATURE_ARB_fragment_program \
+ FEATURE_NV_vertex_program || FEATURE_ARB_vertex_program
case GL_PROGRAM_ERROR_STRING_NV:
- if (ctx->Extensions.NV_fragment_program) {
+ if (ctx->Extensions.NV_fragment_program ||
+ ctx->Extensions.ARB_fragment_program ||
+ ctx->Extensions.NV_vertex_program ||
+ ctx->Extensions.ARB_vertex_program) {
return (const GLubyte *) ctx->Program.ErrorString;
}
/* FALL-THROUGH */