mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/atlas: typo
This commit is contained in:
parent
0a537b7ad2
commit
8321cecfdd
@ -334,7 +334,7 @@ func (i *Image) putOnAtlas() error {
|
|||||||
|
|
||||||
if restorable.NeedsRestoring() {
|
if restorable.NeedsRestoring() {
|
||||||
// If the underlying graphics driver requires restoring from the context lost, the pixel data is
|
// If the underlying graphics driver requires restoring from the context lost, the pixel data is
|
||||||
// needed. A image on an atlas must have its complete pixel data in this case.
|
// needed. An image on an atlas must have its complete pixel data in this case.
|
||||||
pixels := make([]byte, 4*i.width*i.height)
|
pixels := make([]byte, 4*i.width*i.height)
|
||||||
for y := 0; y < i.height; y++ {
|
for y := 0; y < i.height; y++ {
|
||||||
for x := 0; x < i.width; x++ {
|
for x := 0; x < i.width; x++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user