From 3ecff41908c050b8eb82014c12412d0e45c19252 Mon Sep 17 00:00:00 2001 From: xebra Date: Tue, 24 Jan 2017 14:39:19 +0900 Subject: [PATCH] [spline/bezier]Fix to avoid temporarily texture animation bug with hardware tessellation. --- GPU/GLES/VertexShaderGeneratorGLES.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/VertexShaderGeneratorGLES.cpp b/GPU/GLES/VertexShaderGeneratorGLES.cpp index e23787fd75..f78a507335 100644 --- a/GPU/GLES/VertexShaderGeneratorGLES.cpp +++ b/GPU/GLES/VertexShaderGeneratorGLES.cpp @@ -787,7 +787,9 @@ void GenerateVertexShader(const ShaderID &id, char *buffer) { if (scaleUV) { if (hasTexcoord) { if (doBezier || doSpline) - WRITE(p, " v_texcoord = tex * u_uvscaleoffset.xy;\n"); + // TODO: Need fix? + // Fix to avoid temporarily texture animation bug with hardware tessellation. + WRITE(p, " v_texcoord = tex * u_uvscaleoffset.xy + u_uvscaleoffset.zw;\n"); else WRITE(p, " v_texcoord = texcoord * u_uvscaleoffset.xy;\n"); } else {