*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:
*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:
*params = (GLdouble) ctx->Const.ColorReadFormat;
return;
-
#if FEATURE_ATI_fragment_shader
case GL_NUM_FRAGMENT_REGISTERS_ATI:
CHECK_EXTENSION_D(ATI_fragment_shader, pname);
*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:
*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:
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 */