New _mesa_reference_shader/program() function to consolidate refcounting.
authorBrian <brian@yutani.localnet.net>
Thu, 12 Apr 2007 21:22:32 +0000 (15:22 -0600)
committerBrian <brian@yutani.localnet.net>
Thu, 12 Apr 2007 21:22:32 +0000 (15:22 -0600)
commit3c008a014f7c1d14209b70b4b030bf7738aa16d7
tree25202afc36e22614666ea8e6895a6e551209afb6
parentbf287356cfc806f9df862a05620f046f8980a8e7
New _mesa_reference_shader/program() function to consolidate refcounting.

Note that (unlike texture objects), shader handles remain valid (in the
hash table) after glDeleteShader/Program() if the refcount isn't zero.
src/mesa/shader/shader_api.c
src/mesa/shader/shader_api.h