Avoid a segfault if shader is not found ('make install' not run)
This commit is contained in:
parent
74457c4cda
commit
94ca64f08d
|
@ -30,6 +30,9 @@ static demoSource *srcLoadSource(const char *filepathname) {
|
|||
}
|
||||
|
||||
FILE *curFile = fopen(filepathname, "r");
|
||||
if (!curFile) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Get the size of the source
|
||||
fseek(curFile, 0, SEEK_END);
|
||||
|
|
Loading…
Reference in New Issue