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/Clipper.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/Clipper.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Clipper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Software/Clipper.cpp b/Source/Core/VideoBackends/Software/Clipper.cpp index ce27a31694..ea7f1afe6b 100644 --- a/Source/Core/VideoBackends/Software/Clipper.cpp +++ b/Source/Core/VideoBackends/Software/Clipper.cpp @@ -76,7 +76,7 @@ enum static inline int CalcClipMask(const OutputVertexData* v) { int cmask = 0; - Vec4 pos = v->projectedPosition; + Common::Vec4 pos = v->projectedPosition; if (pos.w - pos.x < 0) cmask |= CLIP_POS_X_BIT; @@ -546,8 +546,8 @@ bool IsBackface(const OutputVertexData* v0, const OutputVertexData* v1, const Ou void PerspectiveDivide(OutputVertexData* vertex) { - Vec4& projected = vertex->projectedPosition; - Vec3& screen = vertex->screenPosition; + Common::Vec4& projected = vertex->projectedPosition; + Common::Vec3& screen = vertex->screenPosition; float wInverse = 1.0f / projected.w; screen.x = projected.x * wInverse * xfmem.viewport.wd + xfmem.viewport.xOrig; |
