internal/driver: Change InvalidImageID/InvalidShaderID to 0

This commit is contained in:
Hajime Hoshi
2021-07-01 14:58:55 +09:00
parent 73bf1f36e5
commit b9d52c0267
3 changed files with 6 additions and 10 deletions

View File

@@ -74,15 +74,13 @@ func (g *Graphics) checkSize(width, height int) {
}
func (g *Graphics) genNextImageID() driver.ImageID {
id := g.nextImageID
g.nextImageID++
return id
return g.nextImageID
}
func (g *Graphics) genNextShaderID() driver.ShaderID {
id := g.nextShaderID
g.nextShaderID++
return id
return g.nextShaderID
}
func (g *Graphics) NewImage(width, height int) (driver.Image, error) {