VideoPresenter: Use transfer pitch for screenshots

Unless it's an imported buffer. Should already be the same, but it's
needed for D3D12.
pull/3782/head
Stenzek 2 months ago
parent 5245a58b0e
commit 213c5b450e
No known key found for this signature in database

@ -1656,7 +1656,7 @@ bool VideoPresenter::RenderScreenshotToBuffer(u32 width, u32 height, bool postfx
}
}
dltex->CopyFromTexture(0, 0, render_texture.get(), 0, 0, width, height, 0, 0, false);
dltex->CopyFromTexture(0, 0, render_texture.get(), 0, 0, width, height, 0, 0, !dltex->IsImported());
if (!dltex->ReadTexels(0, 0, width, height, image.GetPixels(), image.GetPitch()))
return false;

Loading…
Cancel
Save