mirror of https://github.com/bjornbytes/lovr.git
Shader #include errors on missing file;
This commit is contained in:
parent
eefc89909e
commit
49328b88a6
|
@ -2495,6 +2495,7 @@ static glsl_include_result_t* includer(void* cb, const char* path, const char* i
|
|||
lovrAssert(result, "Out of memory");
|
||||
result->header_name = path;
|
||||
result->header_data = ((ShaderIncluder*) cb)(path, &result->header_length);
|
||||
if (!result->header_data) return NULL;
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue