From 2e030218ea3e63a855f9c87e91af3248a68f7511 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sun, 9 May 2021 19:51:20 +0100 Subject: [PATCH] src/Viewer/splash.cxx: show message if we are a debug build. --- src/Viewer/splash.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Viewer/splash.cxx b/src/Viewer/splash.cxx index de958ce8b..5941cfcbf 100644 --- a/src/Viewer/splash.cxx +++ b/src/Viewer/splash.cxx @@ -211,6 +211,12 @@ void SplashScreen::createNodes() osgText::Text::CENTER_CENTER, nullptr, -1.0, osg::Vec4(1.0, 0.0, 0.0, 1.0)); } + #ifndef NDEBUG + addText(geode, osg::Vec2(0.5f, 0.75f), 0.03, + "Debug build", + osgText::Text::CENTER_CENTER, + nullptr, -1.0, osg::Vec4(1.0, 0.0, 0.0, 1.0)); + #endif ///////////