Mixing ARB and NV vertex/fragment programs can be tricky. Note: GL_VERTEX_PROGRAM_ARB == GL_VERTEX_PROGRAM_NV but, GL_FRAGMENT_PROGRAM_ARB != GL_FRAGMENT_PROGRAM_NV The two different fragment program targets are supposed to be compatible to some extent (see GL_ARB_fragment_program spec). This function does the compatibility check.
Definition at line 53 of file arbprogram.c.
Referenced by _mesa_BindProgram().