diff --git a/plugins/GSdx/Renderers/DX11/GSRendererDX11.cpp b/plugins/GSdx/Renderers/DX11/GSRendererDX11.cpp index 790587eb7d46b..689234a51cde2 100644 --- a/plugins/GSdx/Renderers/DX11/GSRendererDX11.cpp +++ b/plugins/GSdx/Renderers/DX11/GSRendererDX11.cpp @@ -993,7 +993,7 @@ void GSRendererDX11::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sou } else { - EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, false); + EmulateAtst(ps_cb.FogColor_AREF, ps_atst, false); m_ps_sel.atst = ps_atst; } @@ -1083,13 +1083,13 @@ void GSRendererDX11::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sou { // Enable ATE as first pass to update the depth // of pixels that passed the alpha test - EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, false); + EmulateAtst(ps_cb.FogColor_AREF, ps_atst, false); } else { // second pass will process the pixels that failed // the alpha test - EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, true); + EmulateAtst(ps_cb.FogColor_AREF, ps_atst, true); } m_ps_sel.atst = ps_atst; diff --git a/plugins/GSdx/Renderers/HW/GSRendererHW.cpp b/plugins/GSdx/Renderers/HW/GSRendererHW.cpp index d650cd4b7b3a2..29e5f2a86e1df 100644 --- a/plugins/GSdx/Renderers/HW/GSRendererHW.cpp +++ b/plugins/GSdx/Renderers/HW/GSRendererHW.cpp @@ -438,7 +438,7 @@ void GSRendererHW::Lines2Sprites() } } -void GSRendererHW::EmulateAtst(const GSTextureCache::Source* tex, GSVector4& FogColor_AREF, uint8& ps_atst, const bool pass_2) +void GSRendererHW::EmulateAtst(GSVector4& FogColor_AREF, uint8& ps_atst, const bool pass_2) { static const uint32 inverted_atst[] = {ATST_ALWAYS, ATST_NEVER, ATST_GEQUAL, ATST_GREATER, ATST_NOTEQUAL, ATST_LESS, ATST_LEQUAL, ATST_EQUAL}; @@ -476,7 +476,6 @@ void GSRendererHW::EmulateAtst(const GSTextureCache::Source* tex, GSVector4& Fog FogColor_AREF.a = (float)m_context->TEST.AREF; ps_atst = 4; break; - case ATST_NEVER: // Draw won't be done so no need to implement it in shader case ATST_ALWAYS: default: diff --git a/plugins/GSdx/Renderers/HW/GSRendererHW.h b/plugins/GSdx/Renderers/HW/GSRendererHW.h index 6af0c85f09b00..0d5a8064305b9 100644 --- a/plugins/GSdx/Renderers/HW/GSRendererHW.h +++ b/plugins/GSdx/Renderers/HW/GSRendererHW.h @@ -175,7 +175,7 @@ class GSRendererHW : public GSRenderer GSVector2i GetCustomResolution(); void SetScaling(); void Lines2Sprites(); - void EmulateAtst(const GSTextureCache::Source* tex, GSVector4& FogColor_AREF, uint8& atst, const bool pass_2); + void EmulateAtst(GSVector4& FogColor_AREF, uint8& atst, const bool pass_2); void ConvertSpriteTextureShuffle(bool& write_ba, bool& read_ba); GSVector4 RealignTargetTextureCoordinate(const GSTextureCache::Source* tex); GSVector4i ComputeBoundingBox(const GSVector2& rtscale, const GSVector2i& rtsize); diff --git a/plugins/GSdx/Renderers/OpenGL/GSRendererOGL.cpp b/plugins/GSdx/Renderers/OpenGL/GSRendererOGL.cpp index f856238e412ba..cc41623ecdb4a 100644 --- a/plugins/GSdx/Renderers/OpenGL/GSRendererOGL.cpp +++ b/plugins/GSdx/Renderers/OpenGL/GSRendererOGL.cpp @@ -1219,7 +1219,7 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour m_om_dssel.zwe = false; m_om_csel.wa = false; } else { - EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, false); + EmulateAtst(ps_cb.FogColor_AREF, ps_atst, false); m_ps_sel.atst = ps_atst; } @@ -1336,13 +1336,13 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour { // Enable ATE as first pass to update the depth // of pixels that passed the alpha test - EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, false); + EmulateAtst(ps_cb.FogColor_AREF, ps_atst, false); } else { // second pass will process the pixels that failed // the alpha test - EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, true); + EmulateAtst(ps_cb.FogColor_AREF, ps_atst, true); } m_ps_sel.atst = ps_atst;