RegTest: Fix flipped images in OpenGL

We're reading the framebuffer, not rendered image.
wip2
Stenzek 2 weeks ago
parent b68d7c8adb
commit 953bd0919b
No known key found for this signature in database

@ -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…
Cancel
Save