mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 00:45:35 +00:00
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.
|
// operation list.
|
||||||
func (w *Window) Frame(frame *op.Ops) error {
|
func (w *Window) Frame(frame *op.Ops) error {
|
||||||
return contextDo(w.ctx, func() error {
|
return contextDo(w.ctx, func() error {
|
||||||
w.dev.BindFramebuffer(w.fbo)
|
|
||||||
w.gpu.Clear(color.NRGBA{})
|
w.gpu.Clear(color.NRGBA{})
|
||||||
w.gpu.Collect(w.size, frame)
|
w.gpu.Collect(w.size, frame)
|
||||||
return w.gpu.Frame(driver.RenderTarget(w.fbo))
|
return w.gpu.Frame(driver.RenderTarget(w.fbo))
|
||||||
|
|||||||
Reference in New Issue
Block a user