diff options
author | Brian Paul <[email protected]> | 2005-10-29 15:52:31 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-10-29 15:52:31 +0000 |
commit | 4570364097eb27266eefaa4b2ffdd5dd22325805 (patch) | |
tree | 9443cbfcab28af62f78929beddcb9a22f290f8ee /src/mesa/shader/arbprogparse.h | |
parent | aba878d8c2d0d75b0762f7d8ae191fa438fc7d6a (diff) |
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.
Diffstat (limited to 'src/mesa/shader/arbprogparse.h')
-rw-r--r-- | src/mesa/shader/arbprogparse.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/shader/arbprogparse.h b/src/mesa/shader/arbprogparse.h index 52db0440447..ececfafa8fd 100644 --- a/src/mesa/shader/arbprogparse.h +++ b/src/mesa/shader/arbprogparse.h @@ -67,8 +67,9 @@ struct arb_program GLuint NumTexIndirections; }; -extern GLuint + +extern GLboolean _mesa_parse_arb_program( GLcontext *ctx, const GLubyte *str, GLsizei len, - struct arb_program *Program ); - + struct arb_program *program ); + #endif |