refactor: clean up

This commit is contained in:
dscyrescotti
2024-06-10 00:53:23 +07:00
parent 9c10e46213
commit 2ef8956ad2
@@ -107,11 +107,6 @@ class GraphicRenderPass: RenderPass {
graphicContext.eraserStrokes.remove(eraserStroke) graphicContext.eraserStrokes.remove(eraserStroke)
continue continue
} }
descriptor.colorAttachments[0].loadAction = clearsTexture ? .clear : .load
clearsTexture = false
eraserRenderPass.stroke = eraserStroke
eraserRenderPass.descriptor = descriptor
eraserRenderPass.draw(on: canvas, with: renderer)
} }
} }
} }