From 9092be3a52c6a39256991732a04262876be9d169 Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Sun, 20 Dec 2015 16:03:58 +0100 Subject: [PATCH] GSdx: better default renderer selection. Thanks, Gregory :) --- plugins/GSdx/GS.cpp | 7 ++++++- plugins/GSdx/GS.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GS.cpp b/plugins/GSdx/GS.cpp index 19437e9c6c..60373155eb 100644 --- a/plugins/GSdx/GS.cpp +++ b/plugins/GSdx/GS.cpp @@ -496,7 +496,12 @@ EXPORT_C_(int) GSopen2(void** dsp, uint32 flags) // Fresh start up or config file changed if (renderer == GSRendererType::Undefined) { - renderer = static_cast(theApp.GetConfig("Renderer", static_cast(GSRendererType::Default))); +#ifdef _WIN32 + GSRendererType default_renderer = GSUtil::CheckDirect3D11Level() >= D3D_FEATURE_LEVEL_10_0 ? GSRendererType::DX1011_HW : GSRendererType::DX9_HW; +#else + GSRendererType default_renderer = GSRendererType::Default; +#endif + renderer = static_cast(theApp.GetConfig("Renderer", static_cast(default_renderer))); } else if (stored_toggle_state != toggle_state) { diff --git a/plugins/GSdx/GS.h b/plugins/GSdx/GS.h index 325c941c73..389eecf5a2 100644 --- a/plugins/GSdx/GS.h +++ b/plugins/GSdx/GS.h @@ -240,7 +240,7 @@ enum class GSRendererType : int8_t OGL_OpenCL = 17, #ifdef _WINDOWS - Default = DX1011_HW + Default = DX9_HW #else // Use ogl renderer as default otherwise it crash at startup // GSRenderOGL only GSDeviceOGL (not GSDeviceNULL)