OSDN Git Service

Cg tries to bind NV fragment programs to the GL_FRAGMENT_PROGRAM_ARB target
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Aug 2006 23:11:39 +0000 (23:11 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Aug 2006 23:11:39 +0000 (23:11 +0000)
commit77427a1e52ec8fc7547fe22af31a4480be90938a
tree2c88b2d53862bca555578563d348f7d4c23fed71
parente6940f0a33a571b199bab60b680c30b718c47445
Cg tries to bind NV fragment programs to the GL_FRAGMENT_PROGRAM_ARB target
with glBindProgramARB().  I guess the GL_ARB_fragment_program specification
allows that, but Mesa didn't.
Relaxed the check with a new predicate function: compatible_program_targets().
src/mesa/shader/program.c