mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
System: Fix inverted save screenshot colour channels
This commit is contained in:
parent
aeb3d00002
commit
023900dc77
|
@ -1912,9 +1912,9 @@ bool System::InternalSaveState(ByteStream* state, u32 screenshot_size /* = 256 *
|
|||
u32 screenshot_stride;
|
||||
HostDisplayPixelFormat screenshot_format;
|
||||
if (g_host_display->RenderScreenshot(screenshot_width, screenshot_height, &screenshot_buffer, &screenshot_stride,
|
||||
&screenshot_format) ||
|
||||
!g_host_display->ConvertTextureDataToRGBA8(screenshot_width, screenshot_height, screenshot_buffer,
|
||||
screenshot_stride, HostDisplayPixelFormat::RGBA8))
|
||||
&screenshot_format) &&
|
||||
g_host_display->ConvertTextureDataToRGBA8(screenshot_width, screenshot_height, screenshot_buffer,
|
||||
screenshot_stride, screenshot_format))
|
||||
{
|
||||
if (screenshot_stride != (screenshot_width * sizeof(u32)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue