GPU/HW: Fix flipped GPU readback in D3D11

This commit is contained in:
Connor McLaughlin 2019-11-14 22:11:12 +10:00
parent 9d66638bce
commit bc9ed3572b

View file

@ -740,7 +740,7 @@ uint SampleVRAM(int2 coords)
{ {
int2 sample_coords = int2(int(v_pos.x) * 2, int(v_pos.y)); 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. // Lower-left origin flip for OpenGL.
// We want to write the image out upside-down so we can read it top-to-bottom. // 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; sample_coords.y = u_size.y - sample_coords.y - 1;