mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
Fix a variable name
This commit is contained in:
parent
5b41374ac7
commit
1fa39e3b8a
@ -31,8 +31,8 @@ func adjustImageForTexture(img image.Image) *image.RGBA {
|
|||||||
internal.NextPowerOf2Int(height),
|
internal.NextPowerOf2Int(height),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if nrgba, ok := img.(*image.RGBA); ok && img.Bounds() == adjustedImageBounds {
|
if adjustedImage, ok := img.(*image.RGBA); ok && img.Bounds() == adjustedImageBounds {
|
||||||
return nrgba
|
return adjustedImage
|
||||||
}
|
}
|
||||||
|
|
||||||
adjustedImage := image.NewRGBA(adjustedImageBounds)
|
adjustedImage := image.NewRGBA(adjustedImageBounds)
|
||||||
|
Loading…
Reference in New Issue
Block a user