mirror of https://github.com/PCSX2/pcsx2.git
gsdx ogl: always clear depth buffer in FFX2
It avoid depth issues and I'm sure it won't broke other games this way. Issue #1340
This commit is contained in:
parent
9537accb51
commit
247d33a627
|
@ -1765,7 +1765,7 @@ void GSTextureCache::Target::Update()
|
|||
m_renderer->m_dev->ClearDepth(m_texture, 0);
|
||||
|
||||
return;
|
||||
} else if (m_type == DepthStencil && r.x == 0 && r.y == 0 && r.width() <= 64 && r.height() <= 32) {
|
||||
} else if (m_type == DepthStencil && m_renderer->m_game.title == CRC::FFX2) {
|
||||
GL_INS("ERROR: bad invalidation detected, depth buffer will be cleared");
|
||||
// FFX2 menu. Invalidation of the depth is wrongly done and only the first
|
||||
// page is invalidated. Technically a CRC hack will be better but I don't expect
|
||||
|
|
Loading…
Reference in New Issue