Fix segfault on shader compilation failure;
@@ -1012,6 +1012,7 @@ static Blob* luax_checkshadercode(lua_State* L, int index, ShaderStage stage) {
}
Blob* code = lovrGraphicsCompileShader(stage, source);
+ lovrAssert(code, "Could not compile shader");
lovrRelease(source, lovrBlobDestroy);
return code;
}
