gsdx hack: don't add extra correct for zero length texture

Otherwise t1-t0 is 16 instead of 0
This commit is contained in:
Gregory Hainaut 2015-04-11 10:54:30 +02:00
parent d2156c86eb
commit 7e89247bf4
1 changed files with 2 additions and 2 deletions

View File

@ -444,7 +444,7 @@ void GSRendererHW::Draw()
// will be sampled so (t0 - 8) and (t1 - 8 + 16) must be valid. // will be sampled so (t0 - 8) and (t1 - 8 + 16) must be valid.
// //
// Minus half for t1 case might be too much // Minus half for t1 case might be too much
if (tx0 < tx1) { if (tx0 <= tx1) {
v[i].U = tx0 + half + 1; v[i].U = tx0 + half + 1;
v[i+1].U = tx1 - half + 1 + 16; v[i+1].U = tx1 - half + 1 + 16;
} else { } else {
@ -453,7 +453,7 @@ void GSRendererHW::Draw()
} }
#endif #endif
#if 1 #if 1
if (ty0 < ty1) { if (ty0 <= ty1) {
v[i].V = ty0 + half + 1; v[i].V = ty0 + half + 1;
v[i+1].V = ty1 - half + 1 + 16; v[i+1].V = ty1 - half + 1 + 16;
} else { } else {