Skip to content

Commit

Permalink
internal/graphicscommand: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Jul 30, 2023
1 parent 335dab9 commit 81b7fd7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/graphicscommand/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ func (q *commandQueue) Flush(graphicsDriver graphicsdriver.Graphics, endFrame bo
swapBuffersForGL()
}
})
if endFrame {
q.uint32sBuffer.reset()
}
return
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 81b7fd7

Please sign in to comment.