diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-02-10 16:01:42 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2021-03-06 19:27:14 -0800 |
| commit | aab81d5aa0a1bd6a467c91d0dbba04a9dc40998f (patch) | |
| tree | 6f176792633fef3693183a5b795be65ce976bc8a /Source/Core/VideoCommon/VertexManagerBase.cpp | |
| parent | 953e09428fac6384038c80b7337a71dbb8c00fbb (diff) | |
Convert XFMemory to BitField and enum class
Additionally a new ClipDisable union has been added (though it is not currently used by Dolphin).
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexManagerBase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index 59d351018f..26d9fc9dc9 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -408,10 +408,10 @@ void VertexManagerBase::Flush() for (u32 i = 0; i < xfmem.numTexGen.numTexGens; ++i) { TexMtxInfo tinfo = xfmem.texMtxInfo[i]; - if (tinfo.texgentype != XF_TEXGEN_EMBOSS_MAP) + if (tinfo.texgentype != TexGenType::EmbossMap) tinfo.hex &= 0x7ff; - if (tinfo.texgentype != XF_TEXGEN_REGULAR) - tinfo.projection = 0; + if (tinfo.texgentype != TexGenType::Regular) + tinfo.projection = TexSize::ST; PRIM_LOG("txgen{}: proj={}, input={}, gentype={}, srcrow={}, embsrc={}, emblght={}, " "postmtx={}, postnorm={}", @@ -430,7 +430,7 @@ void VertexManagerBase::Flush() // Track some stats used elsewhere by the anamorphic widescreen heuristic. if (!SConfig::GetInstance().bWii) { - const bool is_perspective = xfmem.projection.type == GX_PERSPECTIVE; + const bool is_perspective = xfmem.projection.type == ProjectionType::Perspective; auto& counts = is_perspective ? m_flush_statistics.perspective : m_flush_statistics.orthographic; |
