From 7e89247bf474f61019e295c72f3f23c900027696 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 11 Apr 2015 10:54:30 +0200 Subject: [PATCH] gsdx hack: don't add extra correct for zero length texture Otherwise t1-t0 is 16 instead of 0 --- plugins/GSdx/GSRendererHW.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index 7d9f30fdf..c0b2b50bd 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -444,7 +444,7 @@ void GSRendererHW::Draw() // will be sampled so (t0 - 8) and (t1 - 8 + 16) must be valid. // // Minus half for t1 case might be too much - if (tx0 < tx1) { + if (tx0 <= tx1) { v[i].U = tx0 + half + 1; v[i+1].U = tx1 - half + 1 + 16; } else { @@ -453,7 +453,7 @@ void GSRendererHW::Draw() } #endif #if 1 - if (ty0 < ty1) { + if (ty0 <= ty1) { v[i].V = ty0 + half + 1; v[i+1].V = ty1 - half + 1 + 16; } else {