Avoid a segfault if shader is not found ('make install' not run)

This commit is contained in:
Aaron Culliney 2016-08-21 14:18:14 -07:00
parent 74457c4cda
commit 94ca64f08d
1 changed files with 3 additions and 0 deletions

View File

@ -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);