Skip to content

Commit

Permalink
Fix issue #16776
Browse files Browse the repository at this point in the history
  • Loading branch information
miguedevel authored and LibretroAdmin committed Jul 13, 2024
1 parent 60fd45f commit 6a29b3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gfx/drivers/d3d11.c
Original file line number Diff line number Diff line change
Expand Up @@ -3696,9 +3696,9 @@ static bool d3d11_gfx_read_viewport(void* data, uint8_t* buffer, bool is_idle)

for (x = 0; x < d3d11->vp.width; x++)
{
bufferRow[3 * x + 2] = BackBufferData[4 * x + 0];
bufferRow[3 * x + 1] = BackBufferData[4 * x + 1];
bufferRow[3 * x + 0] = BackBufferData[4 * x + 2];
bufferRow[3 * x + 2] = BackBufferData[4 * (x + (int)d3d11->frame.viewport.TopLeftX) + 0];
bufferRow[3 * x + 1] = BackBufferData[4 * (x + (int)d3d11->frame.viewport.TopLeftX) + 1];
bufferRow[3 * x + 0] = BackBufferData[4 * (x + (int)d3d11->frame.viewport.TopLeftX) + 2];
}
}
ret = true;
Expand Down

0 comments on commit 6a29b3b

Please sign in to comment.