mesa: change ctx->Driver.ProgramStringNotify() to return GLboolean
authorBrian Paul <brianp@vmware.com>
Thu, 4 Feb 2010 23:49:35 +0000 (16:49 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 4 Feb 2010 23:53:27 +0000 (16:53 -0700)
commit4ac9c80e5beea26e13ccf12ce6bd9ee051c229f5
tree80b3ca588ae0befc950beec84fe3fdc89fd2890d
parent0f763c5b000ad87c43da12bec014d5e367ae64fe
mesa: change ctx->Driver.ProgramStringNotify() to return GLboolean

GL_TRUE indicates that the driver accepts the program.
GL_FALSE indicates the program can't be compiled/translated by the
driver for some reason (too many resources used, etc).

Propogate this result up to the GL API: set GL_INVALID_OPERATION
error if glProgramString() was called.  Set shader program link
status to GL_FALSE if glLinkProgram() was called.

At this point, drivers still don't do any program checking and
always return GL_TRUE.
14 files changed:
src/mesa/drivers/dri/i915/i915_fragprog.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/r200/r200_vertprog.c
src/mesa/drivers/dri/r300/r300_shader.c
src/mesa/drivers/dri/r600/r700_oglprog.c
src/mesa/main/dd.h
src/mesa/main/texenvprogram.c
src/mesa/shader/arbprogram.c
src/mesa/shader/atifragshader.c
src/mesa/shader/shader_api.c
src/mesa/shader/slang/slang_link.c
src/mesa/state_tracker/st_cb_program.c
src/mesa/tnl/t_vb_program.c
src/mesa/tnl/tnl.h