diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-17 13:17:44 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-17 13:17:53 +0100 |
commit | 226daf9b598de6243fe7cc0f35d22b21e682b705 (patch) | |
tree | 29da3fe78629e3988fcf6b2b8be2f15b2826331e /drivers/gles3/shaders | |
parent | 19152765de324fa2e6fadff11edc3bec92ef6fd7 (diff) |
GLES3: Fix canvas shader use of undefined draw_data
Fixes #71551.
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r-- | drivers/gles3/shaders/canvas.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gles3/shaders/canvas.glsl b/drivers/gles3/shaders/canvas.glsl index 3d3d328146..8c53ab6529 100644 --- a/drivers/gles3/shaders/canvas.glsl +++ b/drivers/gles3/shaders/canvas.glsl @@ -579,10 +579,10 @@ void main() { if (normal_used || (using_light && bool(read_draw_data_flags & FLAGS_DEFAULT_NORMAL_MAP_USED))) { normal.xy = texture(normal_texture, uv).xy * vec2(2.0, -2.0) - vec2(1.0, -1.0); - if (bool(draw_data.flags & FLAGS_FLIP_H)) { + if (bool(read_draw_data_flags & FLAGS_FLIP_H)) { normal.x = -normal.x; } - if (bool(draw_data.flags & FLAGS_FLIP_V)) { + if (bool(read_draw_data_flags & FLAGS_FLIP_V)) { normal.y = -normal.y; } normal.z = sqrt(1.0 - dot(normal.xy, normal.xy)); |