mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +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),
|
||||
},
|
||||
}
|
||||
if nrgba, ok := img.(*image.RGBA); ok && img.Bounds() == adjustedImageBounds {
|
||||
return nrgba
|
||||
if adjustedImage, ok := img.(*image.RGBA); ok && img.Bounds() == adjustedImageBounds {
|
||||
return adjustedImage
|
||||
}
|
||||
|
||||
adjustedImage := image.NewRGBA(adjustedImageBounds)
|
||||
|
Loading…
Reference in New Issue
Block a user