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:
Elias Naur
2021-08-13 17:01:29 +02:00
parent 6c3711d95a
commit 6b537f0d4e
-1
View File
@@ -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))