mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 03:25:36 +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;
|
||||
}
|
||||
|
||||
System::QueueAsyncTask([path = std::move(path), fp = fp.release(), flip_y = g_gpu_device->UsesLowerLeftOrigin(),
|
||||
image = std::move(image)]() mutable {
|
||||
System::QueueAsyncTask([path = std::move(path), fp = fp.release(), image = std::move(image)]() mutable {
|
||||
Error error;
|
||||
|
||||
if (flip_y)
|
||||
image.FlipY();
|
||||
|
||||
if (image.GetFormat() != ImageFormat::RGBA8)
|
||||
{
|
||||
std::optional<Image> convert_image = image.ConvertToRGBA8(&error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user