gpu: Move Bind methods to Backend

Having Backend.Bind* methods better matches both opengl and d3d.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-22 14:22:11 +01:00
parent 055fa97343
commit b4c163e437
5 changed files with 63 additions and 59 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func NewWindow(width, height int) (*Window, error) {
fboTex.Release()
return err
}
fbo.Bind()
backend.BindFramebuffer(fbo)
gp, err := gpu.New(backend)
if err != nil {
fbo.Release()