From: Brian Date: Tue, 19 Dec 2006 15:59:36 +0000 (-0700) Subject: additional error checking X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb8f7627f7be71044a2e4cb5d583b8e2d59baab1;p=mesa.git additional error checking --- 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.