print err msg if unable to open shader file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user