summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Tev.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-03-26 00:08:58 +0100
committerPierre Bourdon <delroth@gmail.com>2014-03-26 00:08:58 +0100
commitb4337a21928745bef151c8ab665138f7a435f198 (patch)
treef3792e8f08d1c847059a2354db188a8d62fdd2df /Source/Core/VideoBackends/Software/Tev.cpp
parent6351f28ab41172d7b07626da737d691ce88c9285 (diff)
parent16105db7092707bc130a345ed1e630e2ef1f7747 (diff)
Merge pull request #204 from neobrain/bitfield_cleanup
Bitfield cleanup
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;
}