graphics: Remove indexBufferLines

This commit is contained in:
Hajime Hoshi 2016-05-16 11:34:41 +09:00
parent d6bfa72c5c
commit ba6d10dec0

View File

@ -21,9 +21,9 @@ import (
)
type openGLState struct {
indexBufferLines opengl.Buffer
indexBufferQuads opengl.Buffer
programTexture opengl.Program
lastProgram opengl.Program
lastProjectionMatrix []float32
lastModelviewMatrix []float32
@ -89,12 +89,6 @@ func (s *openGLState) initialize(c *opengl.Context) error {
}
s.indexBufferQuads = c.NewBuffer(c.ElementArrayBuffer, indices, c.StaticDraw)
indices = make([]uint16, indicesNum)
for i := 0; i < len(indices); i++ {
indices[i] = uint16(i)
}
s.indexBufferLines = c.NewBuffer(c.ElementArrayBuffer, indices, c.StaticDraw)
return nil
}