From 482dbb66eacf10eb52d8986cba8d685e452f543b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 12 Aug 2022 23:58:57 -0700 Subject: [PATCH] softgpu: Ensure TCs are initialized. Even if they're not read, we want consistent behavior. --- GPU/Software/TransformUnit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPU/Software/TransformUnit.cpp b/GPU/Software/TransformUnit.cpp index 3719277141..3c22dc9f5b 100644 --- a/GPU/Software/TransformUnit.cpp +++ b/GPU/Software/TransformUnit.cpp @@ -281,6 +281,8 @@ VertexData TransformUnit::ReadVertex(VertexReader &vreader, const TransformState if (state.readUV) { vreader.ReadUV(vertex.texturecoords.AsArray()); + } else { + vertex.texturecoords.SetZero(); } Vec3 normal;