mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-31 10:32:30 +00:00
dx9: Correct off-by-one to the right on tex upload.
As seen in tests. But I'm pretty sure we're still off.
This commit is contained in:
parent
2a1279b521
commit
46717fa266
@ -313,7 +313,7 @@ namespace DX9 {
|
||||
float halfPixelX = invDestW * 0.5f;
|
||||
float halfPixelY = invDestH * 0.5f;
|
||||
for (int i = 0; i < 4; i++) {
|
||||
coord[i * 5] = coord[i * 5] * invDestW - 1.0f + halfPixelX;
|
||||
coord[i * 5] = coord[i * 5] * invDestW - 1.0f - halfPixelX;
|
||||
coord[i * 5 + 1] = -(coord[i * 5 + 1] * invDestH - 1.0f - halfPixelY);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user