Fix glGet with enums which are used not only in NV_vertex_program, but other extensio...
authorRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 1 Mar 2006 23:11:14 +0000 (23:11 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Wed, 1 Mar 2006 23:11:14 +0000 (23:11 +0000)
commit93da673904d4c520d3fbd2210e53777bf1598ac6
tree74245a84790c47d6a37bc2c15f57d86398918695
parentcf6be2d5bd7032d120424f8bc4c926d9d137d223
Fix glGet with enums which are used not only in NV_vertex_program, but other extensions too (ARB_vertex_program, ARB_fragment_program, NV_fragment_program), if no support for NV_vertex_program is present. While here, fix return value if enum is used which is not supported by the exposed extensions (GL_INVALID_ENUM instead of GL_INVALID_VALUE). Fix some compile-time #ifs depending on NV_vertex/fragment_program which should also be dependant on ARB_vertex/fragment_program. See bug #6070
src/mesa/main/enable.c
src/mesa/main/get.c
src/mesa/main/get_gen.py
src/mesa/shader/program.c