mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Render overlays on top of module draw2D calls
This commit is contained in:
@@ -1259,6 +1259,16 @@ void OpenSpaceEngine::drawOverlays() {
|
||||
|
||||
viewportChanged();
|
||||
|
||||
for (const std::function<void()>& func : *global::callback::draw2D) {
|
||||
ZoneScopedN("[Module] draw2D");
|
||||
#ifdef TRACY_ENABLE
|
||||
TracyPlot("RAM", static_cast<int64_t>(ramInUse()));
|
||||
TracyPlot("VRAM", static_cast<int64_t>(vramInUse()));
|
||||
#endif // TRACY_ENABLE
|
||||
|
||||
func();
|
||||
}
|
||||
|
||||
const bool isGuiWindow =
|
||||
global::windowDelegate->hasGuiWindow() ?
|
||||
global::windowDelegate->isGuiWindow() :
|
||||
@@ -1270,16 +1280,6 @@ void OpenSpaceEngine::drawOverlays() {
|
||||
global::sessionRecordingHandler->render();
|
||||
}
|
||||
|
||||
for (const std::function<void()>& func : *global::callback::draw2D) {
|
||||
ZoneScopedN("[Module] draw2D");
|
||||
#ifdef TRACY_ENABLE
|
||||
TracyPlot("RAM", static_cast<int64_t>(ramInUse()));
|
||||
TracyPlot("VRAM", static_cast<int64_t>(vramInUse()));
|
||||
#endif // TRACY_ENABLE
|
||||
|
||||
func();
|
||||
}
|
||||
|
||||
LTRACE("OpenSpaceEngine::drawOverlays(end)");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user