From e847d940623987c774affa5df6ac87137196f945 Mon Sep 17 00:00:00 2001 From: Kojin Date: Sat, 22 Dec 2018 06:32:34 -0500 Subject: [PATCH] gsdx-d3d11: enable splitting of alpha in dumps --- plugins/GSdx/Renderers/DX11/GSTexture11.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/Renderers/DX11/GSTexture11.cpp b/plugins/GSdx/Renderers/DX11/GSTexture11.cpp index 85066442ce..0c674b5888 100644 --- a/plugins/GSdx/Renderers/DX11/GSTexture11.cpp +++ b/plugins/GSdx/Renderers/DX11/GSTexture11.cpp @@ -170,14 +170,17 @@ bool GSTexture11::Save(const std::string& fn, bool dds) res->GetDesc(&desc); - GSPng::Format format; +#ifdef ENABLE_OGL_DEBUG + GSPng::Format format = GSPng::RGB_A_PNG; +#else + GSPng::Format format = GSPng::RGB_PNG; +#endif switch (desc.Format) { case DXGI_FORMAT_A8_UNORM: format = GSPng::R8I_PNG; break; case DXGI_FORMAT_R8G8B8A8_UNORM: - format = dds ? GSPng::RGBA_PNG : (m_desc.BindFlags & D3D11_BIND_DEPTH_STENCIL ? GSPng::RGB_A_PNG : GSPng::RGB_PNG); break; default: fprintf(stderr, "DXGI_FORMAT %d not saved to image\n", desc.Format);