additional error checking
authorBrian <brian@yutani.localnet.net>
Tue, 19 Dec 2006 15:59:36 +0000 (08:59 -0700)
committerBrian <brian@yutani.localnet.net>
Tue, 19 Dec 2006 15:59:36 +0000 (08:59 -0700)
src/mesa/shader/slang/slang_link2.c

index c170b3e053f4c66e2178c558afb0eccb0362ba6f..425ad7a87c15b212470ad7f2a3919d7189609326 100644 (file)
@@ -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.