mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 10:00:36 +01:00
print err msg if unable to open shader file
This commit is contained in:
parent
d3222cb1d4
commit
35a9f1bccf
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue