print err msg if unable to open shader file
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 4 Nov 2008 22:19:28 +0000 (15:19 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 4 Nov 2008 23:55:18 +0000 (16:55 -0700)
progs/util/shaderutil.c

index 4f17dd7efa15ae8fefdaac1b90338a56956b5ab0..745851395a735ddbacb1e9b5b6571ebbb7957984 100644 (file)
@@ -80,6 +80,7 @@ CompileShaderFile(GLenum shaderType, const char *filename)
 
    FILE *f = fopen(filename, "r");
    if (!f) {
+      fprintf(stderr, "Unable to open shader file %s\n", filename);
       return 0;
    }