From d849db6be5ef6b3f0d4784db489c9fed17914e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 28 May 2026 01:34:19 +0200 Subject: [PATCH] Buildfix, remove redundant variable --- Common/UI/ViewGroup.h | 2 +- GPU/Common/DrawEngineCommon.h | 1 + GPU/Common/GPUStateUtils.cpp | 2 -- GPU/Common/GPUStateUtils.h | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Common/UI/ViewGroup.h b/Common/UI/ViewGroup.h index 37c54dec9e..b929545b38 100644 --- a/Common/UI/ViewGroup.h +++ b/Common/UI/ViewGroup.h @@ -111,7 +111,7 @@ public: void Layout() override; }; -const float NONE = -FLT_MAX; +constexpr float NONE = -FLT_MAX; enum class Centering { None = 0, diff --git a/GPU/Common/DrawEngineCommon.h b/GPU/Common/DrawEngineCommon.h index 445be09b50..78b8fd0326 100644 --- a/GPU/Common/DrawEngineCommon.h +++ b/GPU/Common/DrawEngineCommon.h @@ -19,6 +19,7 @@ #include #include +#include #include "Common/CommonTypes.h" #include "Common/Data/Collections/Hashmaps.h" diff --git a/GPU/Common/GPUStateUtils.cpp b/GPU/Common/GPUStateUtils.cpp index 9db51edb07..2c41a70568 100644 --- a/GPU/Common/GPUStateUtils.cpp +++ b/GPU/Common/GPUStateUtils.cpp @@ -559,8 +559,6 @@ DepthScaleFactors GetDepthScaleFactors(u32 useFlags) { } void ConvertViewportAndScissor(const DisplayLayoutConfig &config, bool useBufferedRendering, float renderWidth, float renderHeight, int bufferWidth, int bufferHeight, ViewportAndScissor &out) { - out.throughMode = gstate.isModeThrough(); - float renderWidthFactor, renderHeightFactor; float renderX = 0.0f, renderY = 0.0f; float displayOffsetX, displayOffsetY; diff --git a/GPU/Common/GPUStateUtils.h b/GPU/Common/GPUStateUtils.h index e102eab678..eaf61fba42 100644 --- a/GPU/Common/GPUStateUtils.h +++ b/GPU/Common/GPUStateUtils.h @@ -76,7 +76,6 @@ struct ViewportAndScissor { float viewportY; float viewportW; float viewportH; - bool throughMode; }; // config is only used for non-buffered rendering.