aboutsummaryrefslogtreecommitdiff
path: root/shaders
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-12 04:50:09 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-12 04:50:09 +0200
commite705c74a8d9e3fdf6ed181b8793ad7c8c7afb75f (patch)
tree5a16b464e45624a52f22ff669616f4b7d3051126 /shaders
parenta462f8bcea50c7ad9f33eefc62c03f9ed6fd890b (diff)
Fix uninitialized variable read resulting in item highlight being messed sometimes
Diffstat (limited to 'shaders')
-rw-r--r--shaders/circle_mask.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/circle_mask.glsl b/shaders/circle_mask.glsl
index 367edbe..519cf15 100644
--- a/shaders/circle_mask.glsl
+++ b/shaders/circle_mask.glsl
@@ -10,7 +10,7 @@ vec4 circle(vec2 uv, vec2 pos, float rad, vec4 color) {
void main() {
vec2 uv = gl_TexCoord[0].xy * resolution;
vec2 center = resolution * 0.5;
- float radius = 0.5 * resolution.y - 1;
+ float radius = 0.5 * resolution.y - 1.0;
vec4 texture_color = texture2D(texture, gl_TexCoord[0].xy);
gl_FragColor = circle(uv, center, radius, texture_color);