metal: fix shader compilation when using void effect() with MRTs.

This commit is contained in:
Sasha Szpakowski
2024-03-11 19:14:25 -03:00
parent c91101d2e4
commit 63aba28d18
4 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ Shader::Shader(id<MTLDevice> device, StrongRef<love::graphics::ShaderStage> stag
forcedefault = true;
#endif
if (!tshader->parse(GetDefaultResources(), defaultversion, defaultprofile, forcedefault, forwardcompat, EShMsgSuppressWarnings))
if (!tshader->parse(GetResources(), defaultversion, defaultprofile, forcedefault, forwardcompat, EShMsgSuppressWarnings))
{
const char *stagename = "unknown";
ShaderStage::getConstant(stage, stagename);