diff --git a/plugins/GSdx/GSDeviceOGL.cpp b/plugins/GSdx/GSDeviceOGL.cpp index d77921a4a9..4985442916 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -964,9 +964,9 @@ void GSDeviceOGL::StretchRect(GSTexture* sTex, const GSVector4& sRect, GSTexture // ************************************ if (draw_in_depth) - OMSetDepthStencilState(m_convert.dss_write, 0); + OMSetDepthStencilState(m_convert.dss_write); else - OMSetDepthStencilState(m_convert.dss, 0); + OMSetDepthStencilState(m_convert.dss); if (draw_in_depth) OMSetRenderTargets(NULL, dTex); @@ -1210,7 +1210,7 @@ void GSDeviceOGL::SetupDATE(GSTexture* rt, GSTexture* ds, const GSVertexPT1* ver // om - OMSetDepthStencilState(m_date.dss, 1); + OMSetDepthStencilState(m_date.dss); if (GLState::blend) { glDisable(GL_BLEND); } @@ -1335,7 +1335,7 @@ void GSDeviceOGL::OMSetWriteBuffer(GLenum buffer) gl_DrawBuffers(1, target); } -void GSDeviceOGL::OMSetDepthStencilState(GSDepthStencilOGL* dss, uint8 sref) +void GSDeviceOGL::OMSetDepthStencilState(GSDepthStencilOGL* dss) { dss->SetupDepth(); dss->SetupStencil(); diff --git a/plugins/GSdx/GSDeviceOGL.h b/plugins/GSdx/GSDeviceOGL.h index 49dded183c..a86e2a22aa 100644 --- a/plugins/GSdx/GSDeviceOGL.h +++ b/plugins/GSdx/GSDeviceOGL.h @@ -561,7 +561,7 @@ class GSDeviceOGL : public GSDevice void PSSetShaderResources(GSTexture* sr0, GSTexture* sr1); void PSSetSamplerState(GLuint ss); - void OMSetDepthStencilState(GSDepthStencilOGL* dss, uint8 sref); + void OMSetDepthStencilState(GSDepthStencilOGL* dss); void OMSetBlendState(int blend_index = 0, float blend_factor = 0.0f, bool is_blend_constant = false); void OMSetRenderTargets(GSTexture* rt, GSTexture* ds, const GSVector4i* scissor = NULL); void OMSetWriteBuffer(GLenum buffer = GL_COLOR_ATTACHMENT0); diff --git a/plugins/GSdx/GSTextureFXOGL.cpp b/plugins/GSdx/GSTextureFXOGL.cpp index d673aed345..a523dc3dd0 100644 --- a/plugins/GSdx/GSTextureFXOGL.cpp +++ b/plugins/GSdx/GSTextureFXOGL.cpp @@ -158,7 +158,5 @@ GLuint GSDeviceOGL::GetPaletteSamplerID() void GSDeviceOGL::SetupOM(OMDepthStencilSelector dssel) { - GSDepthStencilOGL* dss = m_om_dss[dssel]; - - OMSetDepthStencilState(dss, 1); + OMSetDepthStencilState(m_om_dss[dssel]); }