mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-30 17:15:42 -04: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));
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user