Merge pull request #17567 from hrydgard/uvscale-as-argument

Pass uvScale in as a fourth argument to the vertex decoder
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-06-13 09:49:31 +02:00
commit 963ca50ba7
17 files changed
+134 -72

No files matched your search

+1 -1
View File
@@ -494,7 +494,7 @@ public:
if (useIndices_)
GetIndexBounds(indices, vertex_count, vertex_type, &lowerBound_, &upperBound_);
if (vertex_count != 0)
vdecoder.DecodeVerts(base, vertices, lowerBound_, upperBound_);
vdecoder.DecodeVerts(base, vertices, &gstate_c.uv, lowerBound_, upperBound_);
// If we're only using a subset of verts, it's better to decode with random access (usually.)
// However, if we're reusing a lot of verts, we should read and cache them.