gsdx: fix hack logic

This commit is contained in:
Gregory Hainaut 2016-04-12 11:36:24 +02:00
parent 6a09fa56fb
commit 8a7184be3f
1 changed files with 2 additions and 2 deletions

View File

@ -656,8 +656,8 @@ GSRendererHW::Hacks::Hacks()
, m_oo(NULL)
, m_cu(NULL)
{
int is_opengl = (static_cast<GSRendererType>(theApp.GetConfig("Renderer", static_cast<int>(GSRendererType::Default))) == GSRendererType::OGL_HW);
bool can_handle_depth = (theApp.GetConfig("UserHacks", 0) || theApp.GetConfig("UserHacks_DisableDepthSupport", 0)) && is_opengl;
bool is_opengl = (static_cast<GSRendererType>(theApp.GetConfig("Renderer", static_cast<int>(GSRendererType::Default))) == GSRendererType::OGL_HW);
bool can_handle_depth = (!theApp.GetConfig("UserHacks", 0) || !theApp.GetConfig("UserHacks_DisableDepthSupport", 0)) && is_opengl;
m_oi_list.push_back(HackEntry<OI_Ptr>(CRC::FFXII, CRC::EU, &GSRendererHW::OI_FFXII));
m_oi_list.push_back(HackEntry<OI_Ptr>(CRC::FFX, CRC::RegionCount, &GSRendererHW::OI_FFX));