mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphics: Remove indexBufferLines
This commit is contained in:
parent
d6bfa72c5c
commit
ba6d10dec0
@ -21,9 +21,9 @@ import (
|
||||
)
|
||||
|
||||
type openGLState struct {
|
||||
indexBufferLines opengl.Buffer
|
||||
indexBufferQuads opengl.Buffer
|
||||
programTexture opengl.Program
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user