From fab2c0b7577dd2a7f90e7103d5fa6f3f33b29e28 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 e6625416..b80c52fa 100644 --- a/src/hello_imgui/internal/backend_impls/runner_factory.cpp +++ b/src/hello_imgui/internal/backend_impls/runner_factory.cpp @@ -73,7 +73,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;