Optimization

This commit is contained in:
Hajime Hoshi 2013-07-09 22:48:56 +09:00
parent 38d343f3e7
commit 4e4cd85a35

View File

@ -166,7 +166,7 @@ func (context *Context) DrawTextureParts(
C.glEnableClientState(C.GL_TEXTURE_COORD_ARRAY)
C.glEnableVertexAttribArray(C.GLuint(vertexAttrLocation))
C.glEnableVertexAttribArray(C.GLuint(textureAttrLocation))
// TODO: Refactoring
// TODO: Optimization
for _, part := range parts {
x1 := float32(part.LocationX)
x2 := float32(part.LocationX + part.Source.Width)