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;