Rearrange glBindProgram() code to do all error checking before changing
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 25 Aug 2006 17:18:56 +0000 (17:18 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 25 Aug 2006 17:18:56 +0000 (17:18 +0000)
commita360bc31dad079d4d1100aa84857758e3d9d6308
treed1f5033246e70ff453afb227d4b89ac49562aad2
parent4bae9a48ecec6d2428b43989d7266e22ceb1a614
Rearrange glBindProgram() code to do all error checking before changing
the binding.  Prevent a potential dangling pointer error.  SF Bug 1544507.
src/mesa/shader/program.c