Merge pull request #22562 from muiroc/gles2_canvas_skip_transform

Uses skip_vertex_transform in GLES2 canvas shader
This commit is contained in:
Rémi Verschelde 2018-10-02 15:12:50 +02:00 committed by GitHub
commit 6e619ccb24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,9 +89,14 @@ VERTEX_SHADER_CODE
/* clang-format on */
}
#if !defined(SKIP_TRANSFORM_USED)
outvec = extra_matrix * outvec;
outvec = modelview_matrix * outvec;
#endif
color_interp = color;
gl_Position = projection_matrix * modelview_matrix * outvec;
gl_Position = projection_matrix * outvec;
}
/* clang-format off */