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:
Gregory Hainaut 2016-05-19 17:50:41 +02:00
parent 9537accb51
commit 247d33a627
1 changed files with 1 additions and 1 deletions

View File

@ -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