mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
gpu: remove Backend.NilTexture
It serves no purpose other than paranoia. Perhaps buggy drivers exists that require unused texture slots cleared before drawing to a texture, but if so the workaround belongs in the GL backend. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -167,10 +167,6 @@ func (b *Backend) NewFramebuffer() gpu.Framebuffer {
|
||||
return &gpuFramebuffer{funcs: b.funcs, obj: fb}
|
||||
}
|
||||
|
||||
func (b *Backend) NilTexture() gpu.Texture {
|
||||
return &gpuTexture{backend: b}
|
||||
}
|
||||
|
||||
func (b *Backend) DefaultFramebuffer() gpu.Framebuffer {
|
||||
return b.defFBO
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user