mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphics: Remove unneeded 'if'
This commit is contained in:
parent
f5b4179142
commit
6d2148f3ea
@ -87,9 +87,6 @@ func drawTexture(c *opengl.Context, texture opengl.Texture, projectionMatrix *[4
|
||||
vertices[16*i+14] = int16(u1)
|
||||
vertices[16*i+15] = int16(v1)
|
||||
}
|
||||
if len(vertices) == 0 {
|
||||
return nil
|
||||
}
|
||||
c.BufferSubData(c.ArrayBuffer, vertices[:16*quads.Len()])
|
||||
c.DrawElements(c.Triangles, 6*quads.Len())
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user