Merge pull request #23339 from RandomShaper/fix-gles2-canvas-inconsistency

Fix GLES2 automatic texture lookup in canvas
This commit is contained in:
Rémi Verschelde
2018-10-29 10:16:28 +01:00
committed by GitHub
+3
View File
@@ -148,7 +148,10 @@ void main() {
vec4 color = color_interp;
#if !defined(COLOR_USED)
//default behavior, texture by color
color *= texture2D(color_texture, uv_interp);
#endif
#ifdef SCREEN_UV_USED
vec2 screen_uv = gl_FragCoord.xy * screen_pixel_size;