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
-1
View File
@@ -20,7 +20,6 @@ type Backend interface {
IsTimeContinuous() bool
NewTexture(format TextureFormat, width, height int, minFilter, magFilter TextureFilter) Texture
DefaultFramebuffer() Framebuffer
NilTexture() Texture
NewFramebuffer() Framebuffer
NewImmutableBuffer(typ BufferType, data []byte) Buffer
NewBuffer(typ BufferType, size int) Buffer