summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders
diff options
context:
space:
mode:
authorThomas Herzog <therzog@mail.de>2018-08-23 16:46:43 +0200
committerThomas Herzog <therzog@mail.de>2018-08-23 16:46:43 +0200
commitda876907fd0ee7fed0718e933100182f5fe5abfe (patch)
tree58d73d3c81b52c03c67f41f07a96d5f978f1aa23 /drivers/gles2/shaders
parentd1497b720eb34da7797e5107c357f6ed17b37297 (diff)
[GLES2] fix canvas_item sampler allocation
Diffstat (limited to 'drivers/gles2/shaders')
-rw-r--r--drivers/gles2/shaders/canvas.glsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gles2/shaders/canvas.glsl b/drivers/gles2/shaders/canvas.glsl
index 29d81bb2c4..e97822f9bf 100644
--- a/drivers/gles2/shaders/canvas.glsl
+++ b/drivers/gles2/shaders/canvas.glsl
@@ -96,9 +96,9 @@ precision mediump float;
precision mediump int;
#endif
-uniform sampler2D color_texture; // texunit:0
+uniform sampler2D color_texture; // texunit:-1
uniform highp vec2 color_texpixel_size;
-uniform mediump sampler2D normal_texture; // texunit:1
+uniform mediump sampler2D normal_texture; // texunit:-2
varying mediump vec2 uv_interp;
varying mediump vec4 color_interp;
@@ -109,7 +109,7 @@ uniform vec4 final_modulate;
#ifdef SCREEN_TEXTURE_USED
-uniform sampler2D screen_texture; // texunit:2
+uniform sampler2D screen_texture; // texunit:-3
#endif