From b5df6aa301a254ff52696f6cb7e58fda342e7326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 16 Oct 2026 11:18:00 +0200 Subject: [PATCH] Debug mode buildfix on Windows --- GPU/Null/GPU_Null.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GPU/Null/GPU_Null.cpp b/GPU/Null/GPU_Null.cpp index 2fa25caf7a..f3080bda5a 100644 --- a/GPU/Null/GPU_Null.cpp +++ b/GPU/Null/GPU_Null.cpp @@ -17,6 +17,7 @@ #include +#include "Common/DbgNew.h" #include "Common/Profiler/Profiler.h" #include "Core/System.h" #include "Core/Util/PPGeDraw.h" @@ -294,5 +295,11 @@ bool GPU_Null::PerformMemorySet(u32 dest, u8 v, int size) { } // namespace GPUCommon *CreateNullGPU(GraphicsContext *gfxCtx) { +#ifdef USE_CRT_DBG +#undef new +#endif return new GPU_Null(gfxCtx); +#ifdef USE_CRT_DBG +#define new DBG_NEW +#endif }