From b695e0065aa7a55c91a30996ab9f6f2d070f1953 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 30 Sep 2016 20:03:50 +0200 Subject: [PATCH] gsdx mipmap: use a 3 state option --- plugins/GSdx/GSRendererHW.cpp | 4 ++-- plugins/GSdx/GSState.cpp | 2 +- plugins/GSdx/GSState.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index 2a9e30ae60..9dc886ac6e 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -38,12 +38,12 @@ GSRendererHW::GSRendererHW(GSTextureCache* tc) m_userhacks_align_sprite_X = theApp.GetConfigB("UserHacks_align_sprite_X"); m_userhacks_round_sprite_offset = theApp.GetConfigI("UserHacks_round_sprite_offset"); m_userhacks_disable_gs_mem_clear = theApp.GetConfigB("UserHacks_DisableGsMemClear"); - m_mipmap = theApp.GetConfigB("UserHacks_mipmap"); + m_mipmap = theApp.GetConfigI("UserHacks_mipmap"); } else { m_userhacks_align_sprite_X = false; m_userhacks_round_sprite_offset = 0; m_userhacks_disable_gs_mem_clear = false; - m_mipmap = false; + m_mipmap = 0; } if (!m_upscale_multiplier) { //Custom Resolution diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index 685e88d53a..c5f2ec47d0 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -46,7 +46,7 @@ GSState::GSState() , m_frameskip(0) { m_nativeres = theApp.GetConfigI("upscale_multiplier") == 1; - m_mipmap = theApp.GetConfigB("mipmap"); + m_mipmap = theApp.GetConfigI("mipmap"); m_NTSC_Saturation = theApp.GetConfigB("NTSC_Saturation"); m_userhacks_skipdraw = theApp.GetConfigB("UserHacks") ? theApp.GetConfigI("UserHacks_SkipDraw") : 0; m_userhacks_auto_flush = theApp.GetConfigB("UserHacks") ? theApp.GetConfigB("UserHacks_AutoFlush") : 0; diff --git a/plugins/GSdx/GSState.h b/plugins/GSdx/GSState.h index ac8b949a4a..48c0f46583 100644 --- a/plugins/GSdx/GSState.h +++ b/plugins/GSdx/GSState.h @@ -223,7 +223,7 @@ public: bool m_framelimit; bool m_NTSC_Saturation; bool m_nativeres; - bool m_mipmap; + int m_mipmap; static int s_n; bool s_dump;