From 6b537f0d4e8dcb77f5f2e31aef8f1e7eae61047f Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 13 Aug 2021 17:01:29 +0200 Subject: [PATCH] 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 --- gpu/headless/headless.go | 1 - 1 file changed, 1 deletion(-) diff --git a/gpu/headless/headless.go b/gpu/headless/headless.go index 0ebbfa36..14c8df7e 100644 --- a/gpu/headless/headless.go +++ b/gpu/headless/headless.go @@ -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))