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:
Elias Naur
2020-02-20 22:42:53 +01:00
parent a4ee72ed28
commit 744a962beb
3 changed files with 0 additions and 7 deletions
-4
View File
@@ -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
}