From bb5d120a3b5bcc86dc24c80150ae08925e3363c7 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Sat, 20 Oct 2018 21:12:16 +0200 Subject: [PATCH] GSdx-d3d: SetupDATE - > use pretty enum names. --- plugins/GSdx/GSDevice11.cpp | 2 +- plugins/GSdx/GSDevice9.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GSDevice11.cpp b/plugins/GSdx/GSDevice11.cpp index 9aa3817fc1..8204469dd9 100644 --- a/plugins/GSdx/GSDevice11.cpp +++ b/plugins/GSdx/GSDevice11.cpp @@ -956,7 +956,7 @@ void GSDevice11::SetupDATE(GSTexture* rt, GSTexture* ds, const GSVertexPT1* vert PSSetShaderResources(rt2, NULL); PSSetSamplerState(m_convert.pt, NULL); - PSSetShader(m_convert.ps[datm ? 2 : 3], NULL); + PSSetShader(m_convert.ps[datm ? ShaderConvert_DATM_1 : ShaderConvert_DATM_0], NULL); // diff --git a/plugins/GSdx/GSDevice9.cpp b/plugins/GSdx/GSDevice9.cpp index 18b4c17978..23ee434f96 100644 --- a/plugins/GSdx/GSDevice9.cpp +++ b/plugins/GSdx/GSDevice9.cpp @@ -1077,7 +1077,7 @@ void GSDevice9::SetupDATE(GSTexture* rt, GSTexture* ds, const GSVertexPT1* verti GSTexture* rt2 = rt->IsMSAA() ? Resolve(rt) : rt; PSSetShaderResources(rt2, NULL); - PSSetShader(m_convert.ps[datm ? 2 : 3], NULL, 0); + PSSetShader(m_convert.ps[datm ? ShaderConvert_DATM_1 : ShaderConvert_DATM_0], NULL, 0); PSSetSamplerState(&m_convert.pt); //