metal: improve shader resource binding code.

This commit is contained in:
Sasha Szpakowski
2024-01-09 21:11:04 -04:00
parent fb002ee59b
commit 7ff6f74a92
2 changed files with 62 additions and 42 deletions
+1 -1
View File
@@ -1063,7 +1063,7 @@ bool Graphics::applyShaderUniforms(id<MTLComputeCommandEncoder> encoder, love::g
if ((b.access & Shader::ACCESS_WRITE) != 0 && texture == nil)
allWritableVariablesSet = false;
}
if (sampindex != LOVE_UINT8_MAX)
setSampler(encoder, bindings, sampindex, samplertex);
}