mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
graphics: Bug fix: compile error
This commit is contained in:
parent
0956ca0ea6
commit
5c201af311
6
image.go
6
image.go
@ -255,10 +255,10 @@ func (i *Image) DrawImage(img *Image, options *DrawImageOptions) error {
|
|||||||
if filter == graphics.FilterLinear {
|
if filter == graphics.FilterLinear {
|
||||||
det := geom.det()
|
det := geom.det()
|
||||||
if det == 0 {
|
if det == 0 {
|
||||||
return
|
return nil
|
||||||
}
|
}
|
||||||
if math.IsNan(det) {
|
if math.IsNaN(float64(det)) {
|
||||||
return
|
return nil
|
||||||
}
|
}
|
||||||
level = graphicsutil.MipmapLevel(det)
|
level = graphicsutil.MipmapLevel(det)
|
||||||
if level < 0 {
|
if level < 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user