gsdx-ogl: don't write depth in first step of DATE 42

Fix shadows in Fifa
This commit is contained in:
Gregory Hainaut 2015-07-02 21:06:40 +02:00
parent 193f47ebb1
commit 0c12f232ca
1 changed files with 3 additions and 0 deletions

View File

@ -836,12 +836,15 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
dev->OMSetRenderTargets(NULL, ds, &scissor);
// Don't write anything on the color buffer
// Neither in the depth buffer
dev->OMSetWriteBuffer(GL_NONE);
glDepthMask(false);
// Compute primitiveID max that pass the date test
SendDraw(false);
// Ask PS to discard shader above the primitiveID max
dev->OMSetWriteBuffer();
glDepthMask(GLState::depth_mask);
ps_sel.date = 3;
dev->SetupPS(ps_sel);