Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commitCommands fires draw call too early #114

Open
ulitiy opened this issue Mar 3, 2021 · 0 comments
Open

commitCommands fires draw call too early #114

ulitiy opened this issue Mar 3, 2021 · 0 comments

Comments

@ulitiy
Copy link

ulitiy commented Mar 3, 2021

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
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant