From 973036b2969ebe8b39eff98d4c7a924f3ae5272f Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Wed, 10 Apr 2024 14:55:10 +0200 Subject: [PATCH] fix runnerFactory / use HELLOIMGUI_USE_NULL --- src/hello_imgui/internal/backend_impls/runner_factory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hello_imgui/internal/backend_impls/runner_factory.cpp b/src/hello_imgui/internal/backend_impls/runner_factory.cpp index e49394a3..1ce35969 100644 --- a/src/hello_imgui/internal/backend_impls/runner_factory.cpp +++ b/src/hello_imgui/internal/backend_impls/runner_factory.cpp @@ -63,7 +63,11 @@ std::unique_ptr FactorRunner(RunnerParams& params) } else if (params.platformBackendType == PlatformBackendType::Null) { - return std::make_unique(params); + #ifdef HELLOIMGUI_USE_NULL + return std::make_unique(params); + #else + return nullptr; + #endif } else return nullptr;