mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-23 03:09:10 +02:00
Merge pull request #9230 from xebra/spline_bezier
Fix texture animation with hw tess.
This commit is contained in:
commit
ff6b660eda
1 file changed
+3
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user