progs/glsl: call ValidateShaderProgram()
authorBrian Paul <brianp@vmware.com>
Tue, 25 Aug 2009 23:45:50 +0000 (17:45 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Aug 2009 23:46:11 +0000 (17:46 -0600)
progs/glsl/multitex.c

index 6ec9c833e67479ede193445faabd3b040a3a9046..bf46fd5210e2de044b6bcc64d51805514374974c 100644 (file)
@@ -331,6 +331,8 @@ CreateProgram(const char *vertProgFile, const char *fragProgFile,
    SetUniformValues(program, uniforms);
    PrintUniforms(Uniforms);
 
+   assert(ValidateShaderProgram(program));
+
    VertCoord_attr = glGetAttribLocation(program, "VertCoord");
    if (VertCoord_attr > 0) {
       /* We want the VertCoord attrib to have position zero so that