summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles2/shaders/canvas.glsl9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gles2/shaders/canvas.glsl b/drivers/gles2/shaders/canvas.glsl
index 464cb9e188..5a26f7321e 100644
--- a/drivers/gles2/shaders/canvas.glsl
+++ b/drivers/gles2/shaders/canvas.glsl
@@ -46,14 +46,15 @@ void main() {
color_interp = color_attrib;
uv_interp = uv_attrib;
- highp vec4 outvec = vec4(vertex, 1.0);
+ highp vec4 outvec = vec4(vertex, 1.0);
{
- vec2 src_vtx=outvec.xy;
+ vec2 src_vtx=outvec.xy;
VERTEX_SHADER_CODE
}
- outvec = extra_matrix * outvec;
- outvec = modelview_matrix * outvec;
+ outvec = extra_matrix * outvec;
+ outvec = modelview_matrix * outvec;
+
#ifdef USE_PIXEL_SNAP
outvec.xy=floor(outvec.xy+0.5);