From badfe6117eaaf498e1b014491bc6e517450f16f9 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 20 Apr 2020 12:24:53 +1000 Subject: [PATCH] GPU: Remove textured draw time penalty Fixes missing elements in Bloody Roar 2. --- src/core/gpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu.h b/src/core/gpu.h index e971fcfe9..1282ecc8b 100644 --- a/src/core/gpu.h +++ b/src/core/gpu.h @@ -385,7 +385,7 @@ protected: #else const u32 draw_ticks = ((width + 1) / 2) * height; #endif - AddCommandTicks(draw_ticks << (BoolToUInt8(textured))); + AddCommandTicks(draw_ticks); } ALWAYS_INLINE void AddDrawRectangleTicks(u32 width, u32 height, bool textured) { AddCommandTicks(width * height); } ALWAYS_INLINE void AddDrawLineTicks(u32 width, u32 height, bool shaded) { AddCommandTicks(std::max(width, height)); }