From af188afc819a388e34b7b00b8e4e524ff83c94e9 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 2 Apr 2016 20:22:03 -1000 Subject: [PATCH] copypasta fix --- lib/graphicsdev/Metal.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/graphicsdev/Metal.mm b/lib/graphicsdev/Metal.mm index d188598..45cf3e2 100644 --- a/lib/graphicsdev/Metal.mm +++ b/lib/graphicsdev/Metal.mm @@ -290,7 +290,7 @@ class MetalTextureR : public ITextureR m_passDesc.depthAttachment.texture = m_depthTex; m_passDesc.depthAttachment.loadAction = MTLLoadActionLoad; m_passDesc.depthAttachment.storeAction = MTLStoreActionStore; - m_clearDepthPassDesc.depthAttachment.clearDepth = 0.f; + m_passDesc.depthAttachment.clearDepth = 0.f; } { @@ -316,7 +316,7 @@ class MetalTextureR : public ITextureR m_clearColorPassDesc.depthAttachment.texture = m_depthTex; m_clearColorPassDesc.depthAttachment.loadAction = MTLLoadActionLoad; m_clearColorPassDesc.depthAttachment.storeAction = MTLStoreActionStore; - m_clearDepthPassDesc.depthAttachment.clearDepth = 0.f; + m_clearColorPassDesc.depthAttachment.clearDepth = 0.f; } { @@ -329,7 +329,7 @@ class MetalTextureR : public ITextureR m_clearBothPassDesc.depthAttachment.texture = m_depthTex; m_clearBothPassDesc.depthAttachment.loadAction = MTLLoadActionClear; m_clearBothPassDesc.depthAttachment.storeAction = MTLStoreActionStore; - m_clearDepthPassDesc.depthAttachment.clearDepth = 0.f; + m_clearBothPassDesc.depthAttachment.clearDepth = 0.f; } } }