diff options
author | Brian <[email protected]> | 2006-12-19 08:59:36 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2006-12-19 08:59:36 -0700 |
commit | bb8f7627f7be71044a2e4cb5d583b8e2d59baab1 (patch) | |
tree | c6d09279d5efda63fcaa93d17b8c920d2935affd /src/mesa/shader/slang | |
parent | 8473ae475fab751b14a42f76643f48c3a746d94c (diff) |
additional error checking
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r-- | src/mesa/shader/slang/slang_link2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_link2.c b/src/mesa/shader/slang/slang_link2.c index c170b3e053f..425ad7a87c1 100644 --- a/src/mesa/shader/slang/slang_link2.c +++ b/src/mesa/shader/slang/slang_link2.c @@ -318,6 +318,13 @@ _slang_link2(GLcontext *ctx, return; } + if (!vertProg->Base.Varying || !fragProg->Base.Varying) { + /* temporary */ + _mesa_problem(ctx, "vertex/fragment program lacks varying list!"); + linked->LinkStatus = GL_FALSE; + return; + } + /* * Make copies of the vertex/fragment programs now since we'll be * changing src/dst registers after merging the uniforms and varying vars. |