mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
gpu: reset to the default framebuffer on reset
The macOS backend doesn't re-create contexts, holding on to the first created instead. Make sure the GPU leaves the default framebuffer bound, in case the context is re-used. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -354,6 +354,7 @@ func (g *GPU) BeginFrame() {
|
||||
g.ctx.SetBlend(false)
|
||||
g.renderer.pather.stenciler.invalidateFBO()
|
||||
g.coverTimer.end()
|
||||
g.ctx.BindFramebuffer(g.defFBO)
|
||||
}
|
||||
|
||||
func (g *GPU) EndFrame() {
|
||||
|
||||
Reference in New Issue
Block a user