mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-07-09 22:32:40 +02:00
refactor: clean up
This commit is contained in:
@@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user