Fix a variable name

This commit is contained in:
Hajime Hoshi 2015-01-21 10:12:05 +09:00
parent 5b41374ac7
commit 1fa39e3b8a

View File

@ -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)