graphics: Add a comment

This commit is contained in:
Hajime Hoshi 2016-05-31 00:30:04 +09:00
parent 6663a447cc
commit 1ca76b64f7

View File

@ -58,7 +58,10 @@ func drawTexture(c *opengl.Context, texture opengl.Texture, projectionMatrix *[4
}
p.begin()
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.DrawElements(c.Triangles, 6*n)
return nil
}