OSDN Git Service

mesa: fix error codes in _mesa_shader_source(), _mesa_get_shader_source()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 22:40:24 +0000 (16:40 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 22:40:24 +0000 (16:40 -0600)
commit36a582641119671688a9f366e5bfa1ab3e8b9cbc
tree6acc254c4efd97b7c6b72da0995af79b7b4a4f48
parenta405d69063c8bae28bd5808e297070d65d90a421
mesa: fix error codes in _mesa_shader_source(), _mesa_get_shader_source()

If the 'shader' parameter is wrong, need to either generate GL_INVALID_VALUE
or GL_INVALID_OPERATION.  It depends on whether 'shader' actually names a
'program' or is a totally unknown ID.
There might be other cases to fix...
src/mesa/shader/shader_api.c