mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-03-24 18:31:23 +01:00
refactor: clean up
This commit is contained in:
@@ -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