mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
parent
81581df2b9
commit
c7214ef6fb
@ -133,7 +133,7 @@ func (i *Image) WritePixels(pix []byte, x, y, width, height int) {
|
||||
i.dotsBuffer[[2]int{x, y}] = clr
|
||||
|
||||
// One square requires 6 indices (= 2 triangles).
|
||||
if len(i.dotsBuffer) >= graphics.IndicesCount/6 {
|
||||
if len(i.dotsBuffer) >= graphics.MaxVertexCount/6 {
|
||||
i.flushDotsBufferIfNeeded()
|
||||
}
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user