summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2006-12-19 08:59:36 -0700
committerBrian <brian@yutani.localnet.net>2006-12-19 08:59:36 -0700
commitbb8f7627f7be71044a2e4cb5d583b8e2d59baab1 (patch)
treec6d09279d5efda63fcaa93d17b8c920d2935affd /src
parent8473ae475fab751b14a42f76643f48c3a746d94c (diff)
additional error checking
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_link2.c7
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 c170b3e053..425ad7a87c 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.