mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: don't write depth in first step of DATE 42
Fix shadows in Fifa
This commit is contained in:
parent
193f47ebb1
commit
0c12f232ca
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue