GSdx: Add an Enumeration for CRC Hack level

This commit is contained in:
Akash authored and Gregory Hainaut committed 2017-02-21 10:54:03 +01:00
1 parent 726f9d5312
commit ff89619b09
8 files changed
+22 -14

No files matched your search

+2 -2
View File
@@ -51,7 +51,7 @@ GSTextureCache::GSTextureCache(GSRenderer* r)
m_paltex = theApp.GetConfigB("paltex");
m_can_convert_depth &= s_IS_OPENGL; // only supported by openGL so far
m_crc_hack_level = theApp.GetConfigI("crc_hack_level");
m_crc_hack_level = static_cast<CRCHackLevel>(theApp.GetConfigI("crc_hack_level"));
// In theory 4MB is enough but 9MB is safer for overflow (8MB
// isn't enough in custom resolution)
@@ -281,7 +281,7 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
// Gregory: to avoid a massive slow down for nothing, let's only enable
// this code when CRC is below the FULL level
if (m_crc_hack_level < 3)
if (m_crc_hack_level < CRCHackLevel::Full)
Read(t, t->m_valid);
else
dst = t;