Shader #include errors on missing file;

This commit is contained in:
bjorn 2023-11-30 09:03:33 -08:00
parent eefc89909e
commit 49328b88a6
1 changed files with 1 additions and 0 deletions

View File

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