From 40d99fd9cae77b8ed7bcc888d66365f8c045d20a Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 15 Dec 2014 19:18:20 +0600 Subject: [PATCH] Ignore degenerate texrects. Fixed issues in Daikatana and Rat Attack. --- gDP.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gDP.cpp b/gDP.cpp index aafb254b..1a9ef6a0 100644 --- a/gDP.cpp +++ b/gDP.cpp @@ -965,6 +965,8 @@ void gDPSetKeyGB(u32 cG, u32 sG, u32 wG, u32 cB, u32 sB, u32 wB ) void gDPTextureRectangle( f32 ulx, f32 uly, f32 lrx, f32 lry, s32 tile, f32 s, f32 t, f32 dsdx, f32 dtdy ) { + if (ulx >= lrx) + return; if (gDP.otherMode.cycleType == G_CYC_COPY) { dsdx = 1.0f; lrx += 1.0f;