summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Tev.cpp
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-03-24 20:21:34 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-03-25 23:57:58 +0100
commit16105db7092707bc130a345ed1e630e2ef1f7747 (patch)
treef3792e8f08d1c847059a2354db188a8d62fdd2df /Source/Core/VideoBackends/Software/Tev.cpp
parent8941f19cdb01bbe8c40851240d02019ed6e13a32 (diff)
BPMemory: Make use of BitField in a number of structures.
Diffstat (limited to 'Source/Core/VideoBackends/Software/Tev.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Tev.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp
index 3b517175eb..1890aaa3e3 100644
--- a/Source/Core/VideoBackends/Software/Tev.cpp
+++ b/Source/Core/VideoBackends/Software/Tev.cpp
@@ -413,17 +413,17 @@ void Tev::DrawAlphaCompare(TevStageCombiner::AlphaCombiner &ac)
}
}
-static bool AlphaCompare(int alpha, int ref, int comp)
+static bool AlphaCompare(int alpha, int ref, AlphaTest::CompareMode comp)
{
switch (comp) {
- case ALPHACMP_ALWAYS: return true;
- case ALPHACMP_NEVER: return false;
- case ALPHACMP_LEQUAL: return alpha <= ref;
- case ALPHACMP_LESS: return alpha < ref;
- case ALPHACMP_GEQUAL: return alpha >= ref;
- case ALPHACMP_GREATER: return alpha > ref;
- case ALPHACMP_EQUAL: return alpha == ref;
- case ALPHACMP_NEQUAL: return alpha != ref;
+ case AlphaTest::ALWAYS: return true;
+ case AlphaTest::NEVER: return false;
+ case AlphaTest::LEQUAL: return alpha <= ref;
+ case AlphaTest::LESS: return alpha < ref;
+ case AlphaTest::GEQUAL: return alpha >= ref;
+ case AlphaTest::GREATER: return alpha > ref;
+ case AlphaTest::EQUAL: return alpha == ref;
+ case AlphaTest::NEQUAL: return alpha != ref;
}
return true;
}