summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Clipper.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2025-07-28 16:31:46 +0100
committerTillmann Karras <tilkax@gmail.com>2025-08-10 05:17:26 +0100
commitfa4127b145dd595de4729c09a4863aa47d6c3e51 (patch)
tree50def0c95347bfbfba0197cc9c63289f938b30c6 /Source/Core/VideoBackends/Software/Clipper.cpp
parente6ed939952f108aeaedc2763b391f2471203305e (diff)
VideoSW: reuse Common::Vec2/3/4
Diffstat (limited to 'Source/Core/VideoBackends/Software/Clipper.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Clipper.cpp6
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;