From 100cbec620fffec435143ac11e49b340589968cb Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 10 Sep 2022 19:44:44 -0700 Subject: [PATCH] GE Debugger: Fix crash on bp before list running. --- GPU/Debugger/Breakpoints.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GPU/Debugger/Breakpoints.cpp b/GPU/Debugger/Breakpoints.cpp index 8d76cbd5e7..225b25799d 100644 --- a/GPU/Debugger/Breakpoints.cpp +++ b/GPU/Debugger/Breakpoints.cpp @@ -29,6 +29,9 @@ namespace GPUBreakpoints { +static void NothingToDo(bool) { +} + struct BreakpointInfo { bool isConditional = false; PostfixExpression expression; @@ -45,7 +48,7 @@ static std::set breakRenderTargets; static size_t breakPCsCount = 0; static size_t breakTexturesCount = 0; static size_t breakRenderTargetsCount = 0; -static std::function notifyBreakpoints; +static std::function notifyBreakpoints = &NothingToDo; // If these are set, the above are also, but they should be temporary. static bool breakCmdsTemp[256];