Browse Source

Merge pull request #34729 from TritiatedWater/patch-1

Fix wrong return type in canvas.glsl
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
85fa17d3c2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/gles3/shaders/canvas.glsl

+ 1 - 1
drivers/gles3/shaders/canvas.glsl

@@ -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;
 		}
 	}
 }