Metal/WebGPU: clearQuad — don't enable stencil ops when FB has no stencil. Closes #3310. (#3733)

This commit is contained in:
Branimir Karadžić
2026-06-07 05:59:27 +00:00
committed by GitHub
parent 9dc9749b53
commit ac6aa47b41
2 changed files with 34 additions and 0 deletions
+5
View File
@@ -3235,6 +3235,11 @@ WGPU_IMPORT
void setDepthStencilState(WGPUDepthStencilState& _outDepthStencilState, TextureFormat::Enum _format, uint64_t _state, uint64_t _stencil)
{
if (!hasStencil(_format) )
{
_stencil = 0;
}
_stencil = 0 == _stencil ? kStencilDisabled : _stencil;
const uint32_t fstencil = unpackStencil(0, _stencil);