From bb8f7627f7be71044a2e4cb5d583b8e2d59baab1 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 19 Dec 2006 08:59:36 -0700 Subject: [PATCH] additional error checking --- src/mesa/shader/slang/slang_link2.c | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.30.2