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:
Unknown W. Brackets 2014-12-30 15:25:40 -08:00
parent 2a1279b521
commit 46717fa266

View File

@ -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);
}