diff options
| author | Tilka <tilkax@gmail.com> | 2025-08-10 08:26:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-10 08:26:02 +0100 |
| commit | e099a9c1802154b7c337a29045080878b8af33fe (patch) | |
| tree | d3fa860802bca00806e81850ce968101199374a3 /Source/Core/VideoBackends/Software/Rasterizer.cpp | |
| parent | 4fc3106761dcbb685f38a0cefc9332fa796a8966 (diff) | |
| parent | fa4127b145dd595de4729c09a4863aa47d6c3e51 (diff) | |
Merge pull request #13838 from Tilka/videosw2
VideoSW: reuse Common::Vec2/3/4
Diffstat (limited to 'Source/Core/VideoBackends/Software/Rasterizer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Rasterizer.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/Software/Rasterizer.cpp b/Source/Core/VideoBackends/Software/Rasterizer.cpp index fe79958dc0..74c3566a6e 100644 --- a/Source/Core/VideoBackends/Software/Rasterizer.cpp +++ b/Source/Core/VideoBackends/Software/Rasterizer.cpp @@ -392,11 +392,12 @@ static void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertex for (unsigned int i = 0; i < bpmem.genMode.numtexgens; i++) { - for (int comp = 0; comp < 3; comp++) - { - TexSlopes[i][comp] = Slope(v0->texCoords[i][comp] * w[0], v1->texCoords[i][comp] * w[1], - v2->texCoords[i][comp] * w[2], ctx); - } + TexSlopes[i][0] = + Slope(v0->texCoords[i].x * w[0], v1->texCoords[i].x * w[1], v2->texCoords[i].x * w[2], ctx); + TexSlopes[i][1] = + Slope(v0->texCoords[i].y * w[0], v1->texCoords[i].y * w[1], v2->texCoords[i].y * w[2], ctx); + TexSlopes[i][2] = + Slope(v0->texCoords[i].z * w[0], v1->texCoords[i].z * w[1], v2->texCoords[i].z * w[2], ctx); } // Half-edge constants |
