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 {