mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
graphics: Add a comment
This commit is contained in:
parent
6663a447cc
commit
1ca76b64f7
@ -58,7 +58,10 @@ func drawTexture(c *opengl.Context, texture opengl.Texture, projectionMatrix *[4
|
|||||||
}
|
}
|
||||||
p.begin()
|
p.begin()
|
||||||
defer p.end()
|
defer p.end()
|
||||||
|
// TODO: We should call glBindBuffer here?
|
||||||
|
// The buffer is already bound at begin() but it is counterintuitive.
|
||||||
c.BufferSubData(c.ArrayBuffer, vertices)
|
c.BufferSubData(c.ArrayBuffer, vertices)
|
||||||
c.DrawElements(c.Triangles, 6*n)
|
c.DrawElements(c.Triangles, 6*n)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user