From 2505ae28589c80d27ca3d7d3e04b9b5c4ce2ce7c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 10 Sep 2022 13:36:01 -0700 Subject: [PATCH] GE Debugger: Fix logging of texture size. --- GPU/GeDisasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GeDisasm.cpp b/GPU/GeDisasm.cpp index b30218b44a..a645b5bc2b 100644 --- a/GPU/GeDisasm.cpp +++ b/GPU/GeDisasm.cpp @@ -605,7 +605,7 @@ void GeDisassembleOp(u32 pc, u32 op, u32 prev, char *buffer, int bufsize) { { int w = 1 << (data & 0xf); int h = 1 << ((data>>8) & 0xf); - if ((data & ~0x0F0F) && w <= 512 && h <= 512) + if ((data & ~0x0F0F) == 0 && w <= 512 && h <= 512) snprintf(buffer, bufsize, "Texture size %d: %dx%d", cmd - GE_CMD_TEXSIZE0, w, h); else snprintf(buffer, bufsize, "Texture size %d: %dx%d (extra %06x)", cmd - GE_CMD_TEXSIZE0, w, h, data);