From ba463ed076d3baec4a9db5990d695bb6e4d11a93 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Thu, 31 May 2018 21:22:12 +0200 Subject: [PATCH] GSdx: Disable Alpha hack gui option on D3D9. Hack is only used on D3D10/11. --- plugins/GSdx/GSSettingsDlg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSSettingsDlg.cpp b/plugins/GSdx/GSSettingsDlg.cpp index c3f8527e8a..407fc39272 100644 --- a/plugins/GSdx/GSSettingsDlg.cpp +++ b/plugins/GSdx/GSSettingsDlg.cpp @@ -657,6 +657,7 @@ void GSHacksDlg::OnInit() // It can only be accessed with a HW renderer, so this is sufficient. bool dx9 = renderer == GSRendererType::DX9_HW; + bool dx11 = renderer == GSRendererType::DX1011_HW; bool ogl = renderer == GSRendererType::OGL_HW; bool native = upscaling_multiplier == 1; @@ -723,7 +724,7 @@ void GSHacksDlg::OnInit() // Direct3D-only hacks: EnableWindow(GetDlgItem(m_hWnd, IDC_ALPHASTENCIL), !ogl); - EnableWindow(GetDlgItem(m_hWnd, IDC_ALPHAHACK), !ogl); + EnableWindow(GetDlgItem(m_hWnd, IDC_ALPHAHACK), dx11); EnableWindow(GetDlgItem(m_hWnd, IDC_MSAACB), !ogl); EnableWindow(GetDlgItem(m_hWnd, IDC_MSAA_TEXT), !ogl);