forked from joejulian/gio
gpu/headless: remove useless framebuffer bind
GPU.Frame now takes an explicit RenderTarget and it is no longer necessary to bind the target. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -108,7 +108,6 @@ func (w *Window) Release() {
|
||||
// operation list.
|
||||
func (w *Window) Frame(frame *op.Ops) error {
|
||||
return contextDo(w.ctx, func() error {
|
||||
w.dev.BindFramebuffer(w.fbo)
|
||||
w.gpu.Clear(color.NRGBA{})
|
||||
w.gpu.Collect(w.size, frame)
|
||||
return w.gpu.Frame(driver.RenderTarget(w.fbo))
|
||||
|
||||
Reference in New Issue
Block a user