From 8534fda28c28d016ad8894290bd90915dbd9e70b Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Wed, 10 Apr 2024 14:58:05 +0200 Subject: [PATCH] fix abstractRunner / use HELLOIMGUI_USE_NULL --- src/hello_imgui/internal/backend_impls/abstract_runner.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp index db0a492e..376b4418 100644 --- a/src/hello_imgui/internal/backend_impls/abstract_runner.cpp +++ b/src/hello_imgui/internal/backend_impls/abstract_runner.cpp @@ -742,7 +742,11 @@ void AbstractRunner::InitRenderBackendCallbacks() } else if (params.rendererBackendType == RendererBackendType::Null) { - mRenderingBackendCallbacks = CreateBackendCallbacks_Null(); + #ifdef HELLOIMGUI_USE_NULL + mRenderingBackendCallbacks = CreateBackendCallbacks_Null(); + #else + IM_ASSERT(false && "Null backend is not available!"); + #endif } else {