GS: dump alpha channel too.

This commit is contained in:
iMineLink 2021-11-22 23:55:17 +01:00 committed by lightningterror
parent 8e93e9f516
commit 3b309c6d4e
3 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ bool GSTexture11::Save(const std::string& fn)
res->GetDesc(&desc);
#ifdef ENABLE_OGL_DEBUG
#ifdef PCSX2_DEVBUILD
GSPng::Format format = GSPng::RGB_A_PNG;
#else
GSPng::Format format = GSPng::RGB_PNG;

View File

@ -573,7 +573,7 @@ bool GSTextureOGL::Save(const std::string& fn)
u32 pitch = 4 * m_committed_size.x;
u32 buf_size = pitch * m_committed_size.y * 2; // Note *2 for security (depth/stencil)
std::unique_ptr<u8[]> image(new u8[buf_size]);
#ifdef ENABLE_OGL_DEBUG
#ifdef PCSX2_DEVBUILD
GSPng::Format fmt = GSPng::RGB_A_PNG;
#else
GSPng::Format fmt = GSPng::RGB_PNG;

View File

@ -81,7 +81,7 @@ void GSTextureSW::Unmap()
bool GSTextureSW::Save(const std::string& fn)
{
#ifdef ENABLE_OGL_DEBUG
#ifdef PCSX2_DEVBUILD
GSPng::Format fmt = GSPng::RGB_A_PNG;
#else
GSPng::Format fmt = GSPng::RGB_PNG;