mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-17 13:32:02 +08:00
internal/driver: Change InvalidImageID/InvalidShaderID to 0
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user