print err msg if unable to open shader file

This commit is contained in:
Brian Paul
2008-11-04 15:19:28 -07:00
parent d3222cb1d4
commit 35a9f1bccf

View 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;
}