Merge pull request #34729 from TritiatedWater/patch-1

Fix wrong return type in canvas.glsl
This commit is contained in:
Rémi Verschelde 2020-01-01 14:09:12 +01:00 committed by GitHub
commit 85fa17d3c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -419,7 +419,7 @@ float map_ninepatch_axis(float pixel, float draw_size, float tex_pixel_size, flo
// Scale to source texture.
return (margin_begin + ratio * dst_area) * tex_pixel_size;
} else { // Shouldn't happen, but silences compiler warning.
return 0;
return 0.0;
}
}
}