MaLiang icon indicating copy to clipboard operation
MaLiang copied to clipboard

commitCommands fires draw call too early

Open ulitiy opened this issue 3 years ago • 0 comments

It should look like this, otherwise some lines can be omitted on redraw.

    internal func commitCommands() {
        commandBuffer?.addCompletedHandler { cb in
            self.modified = true
        }
        commandBuffer?.commit()
        commandBuffer = nil
        modified = true // keep it, otherwise clear doesn't work
    }

ulitiy avatar Mar 03 '21 15:03 ulitiy