mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 12:05:52 +00:00
RegTest: Fix flipped images in OpenGL
We're reading the framebuffer, not rendered image.
This commit is contained in:
parent
b68d7c8adb
commit
953bd0919b
@ -457,13 +457,9 @@ void Host::FrameDoneOnGPUThread(GPUBackend* gpu_backend, u32 frame_number)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
System::QueueAsyncTask([path = std::move(path), fp = fp.release(), flip_y = g_gpu_device->UsesLowerLeftOrigin(),
|
System::QueueAsyncTask([path = std::move(path), fp = fp.release(), image = std::move(image)]() mutable {
|
||||||
image = std::move(image)]() mutable {
|
|
||||||
Error error;
|
Error error;
|
||||||
|
|
||||||
if (flip_y)
|
|
||||||
image.FlipY();
|
|
||||||
|
|
||||||
if (image.GetFormat() != ImageFormat::RGBA8)
|
if (image.GetFormat() != ImageFormat::RGBA8)
|
||||||
{
|
{
|
||||||
std::optional<Image> convert_image = image.ConvertToRGBA8(&error);
|
std::optional<Image> convert_image = image.ConvertToRGBA8(&error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user