mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
gpu: drop Framebuffer.IsComplete in favour of an error from NewFramebuffer
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+5
-1
@@ -211,7 +211,11 @@ func (s *fboSet) resize(ctx Backend, sizes []image.Point) {
|
||||
f.size = sz
|
||||
f.tex = ctx.NewTexture(TextureFormatFloat, sz.X, sz.Y, FilterNearest, FilterNearest,
|
||||
BufferBindingTexture|BufferBindingFramebuffer)
|
||||
f.fbo = ctx.NewFramebuffer(f.tex)
|
||||
fbo, err := ctx.NewFramebuffer(f.tex)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
f.fbo = fbo
|
||||
}
|
||||
}
|
||||
// Delete extra fbos.
|
||||
|
||||
Reference in New Issue
Block a user