mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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 {
|
||||
det := geom.det()
|
||||
if det == 0 {
|
||||
return
|
||||
return nil
|
||||
}
|
||||
if math.IsNan(det) {
|
||||
return
|
||||
if math.IsNaN(float64(det)) {
|
||||
return nil
|
||||
}
|
||||
level = graphicsutil.MipmapLevel(det)
|
||||
if level < 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user