mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
internal/graphicscommand: refactoring
This commit is contained in:
parent
335dab9175
commit
81b7fd7641
@ -175,9 +175,6 @@ func (q *commandQueue) Flush(graphicsDriver graphicsdriver.Graphics, endFrame bo
|
||||
swapBuffersForGL()
|
||||
}
|
||||
})
|
||||
if endFrame {
|
||||
q.uint32sBuffer.reset()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@ -215,6 +212,10 @@ func (q *commandQueue) flush(graphicsDriver graphicsdriver.Graphics, endFrame bo
|
||||
q.vertices = q.vertices[:0]
|
||||
q.indices = q.indices[:0]
|
||||
q.tmpNumVertexFloats = 0
|
||||
|
||||
if endFrame {
|
||||
q.uint32sBuffer.reset()
|
||||
}
|
||||
}()
|
||||
|
||||
cs := q.commands
|
||||
|
Loading…
Reference in New Issue
Block a user