From 3319adfa2f0857d453fe5e0c4ad043cceb3317c3 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 19 Apr 2020 16:57:51 +1000 Subject: [PATCH] GPU: Tweak rectangle draw times --- src/core/gpu.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/gpu.h b/src/core/gpu.h index 6d8319205..e971fcfe9 100644 --- a/src/core/gpu.h +++ b/src/core/gpu.h @@ -387,10 +387,7 @@ protected: #endif AddCommandTicks(draw_ticks << (BoolToUInt8(textured))); } - ALWAYS_INLINE void AddDrawRectangleTicks(u32 width, u32 height, bool textured) - { - AddCommandTicks((width * height) << (BoolToUInt8(textured))); - } + 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)); } HostDisplay* m_host_display = nullptr;