diff --git a/src/modules/graphics/graphics.c b/src/modules/graphics/graphics.c index 36ef0bfb..11831e55 100644 --- a/src/modules/graphics/graphics.c +++ b/src/modules/graphics/graphics.c @@ -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