If parsing a program fails, don't change the vertex/fragment program object.
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 29 Oct 2005 15:52:31 +0000 (15:52 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 29 Oct 2005 15:52:31 +0000 (15:52 +0000)
commit4570364097eb27266eefaa4b2ffdd5dd22325805
tree9443cbfcab28af62f78929beddcb9a22f290f8ee
parentaba878d8c2d0d75b0762f7d8ae191fa438fc7d6a
If parsing a program fails, don't change the vertex/fragment program object.
Specifically, don't attach a dummy program.
This change also fixes an occasional segfault.
Some code clean-ups.  Use GLboolean instead of GLuint to return pass/fail.
src/mesa/shader/arbfragparse.c
src/mesa/shader/arbprogparse.c
src/mesa/shader/arbprogparse.h
src/mesa/shader/arbvertparse.c