projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8473ae4
)
additional error checking
author
Brian
<brian@yutani.localnet.net>
Tue, 19 Dec 2006 15:59:36 +0000
(08:59 -0700)
committer
Brian
<brian@yutani.localnet.net>
Tue, 19 Dec 2006 15:59:36 +0000
(08:59 -0700)
src/mesa/shader/slang/slang_link2.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_link2.c
b/src/mesa/shader/slang/slang_link2.c
index c170b3e053f4c66e2178c558afb0eccb0362ba6f..425ad7a87c15b212470ad7f2a3919d7189609326 100644
(file)
--- 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.