additional error checking

This commit is contained in:
Brian
2006-12-19 08:59:36 -07:00
parent 8473ae475f
commit bb8f7627f7
+7
View 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.