mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
GPU/HW: Fix flipped GPU readback in D3D11
This commit is contained in:
parent
9d66638bce
commit
bc9ed3572b
|
@ -740,7 +740,7 @@ uint SampleVRAM(int2 coords)
|
|||
{
|
||||
int2 sample_coords = int2(int(v_pos.x) * 2, int(v_pos.y));
|
||||
|
||||
#if API_OPENGL || API_OPENGL_ES || 1
|
||||
#if API_OPENGL || API_OPENGL_ES
|
||||
// Lower-left origin flip for OpenGL.
|
||||
// We want to write the image out upside-down so we can read it top-to-bottom.
|
||||
sample_coords.y = u_size.y - sample_coords.y - 1;
|
||||
|
|
Loading…
Reference in a new issue