mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-11-18 14:48:27 +01:00
refactor: clean up
This commit is contained in:
1 parent
9c10e46213
commit
2ef8956ad2
1 file changed
-5
@@ -107,11 +107,6 @@ class GraphicRenderPass: RenderPass {
|
||||
graphicContext.eraserStrokes.remove(eraserStroke)
|
||||
continue
|
||||
}
|
||||
descriptor.colorAttachments[0].loadAction = clearsTexture ? .clear : .load
|
||||
clearsTexture = false
|
||||
eraserRenderPass.stroke = eraserStroke
|
||||
eraserRenderPass.descriptor = descriptor
|
||||
eraserRenderPass.draw(on: canvas, with: renderer)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user