summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorTritium Oxide <atisuperati@gmail.com>2020-01-01 19:14:51 +0700
committerGitHub <noreply@github.com>2020-01-01 19:14:51 +0700
commitbb6f04c9f53f4318c3bd44b3e7398f6973f7b68d (patch)
tree37b1747b7f139e803829edc87568330d34fe762c /drivers/gles3
parentf7715b58bded9d0402ddff3c7fb389344ee3591c (diff)
Fix wrong return type
`ERROR: _display_error_with_code: CanvasShaderGLES3: Fragment Program Compilation Failed: 0:166(2): error: `return' with wrong type int, in function `map_ninepatch_axis' returning float` caused by #34704
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/shaders/canvas.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/canvas.glsl b/drivers/gles3/shaders/canvas.glsl
index cd1c669be5..ec18c83df3 100644
--- a/drivers/gles3/shaders/canvas.glsl
+++ b/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;
}
}
}