From 60ec11982ae560ffac3a429ad6e1a4b7bfe69bea Mon Sep 17 00:00:00 2001 From: Bruno Date: Wed, 19 May 2021 23:30:07 +0200 Subject: [PATCH] OSX compilation --- .gitignore | 4 ++++ UserInterfaceManager.cpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index 0402717..68ce5fc 100644 --- a/.gitignore +++ b/.gitignore @@ -19,8 +19,12 @@ rules.ninja rsc/shaders/paint.fs +<<<<<<< master osx/.DS_Store .DS_Store osx/runvimix +======= +.vscode/settings.json +>>>>>>> OSX compilation diff --git a/UserInterfaceManager.cpp b/UserInterfaceManager.cpp index 3363572..2df258f 100644 --- a/UserInterfaceManager.cpp +++ b/UserInterfaceManager.cpp @@ -112,7 +112,10 @@ UserInterface::UserInterface() // keep hold on frame grabbers video_recorder_ = nullptr; + +#if defined(LINUX) webcam_emulator_ = nullptr; +#endif } bool UserInterface::Init() @@ -1243,6 +1246,8 @@ void UserInterface::RenderPreview() ImGui::PopStyleColor(1); ImGui::PopFont(); } + +#if defined(LINUX) // streaming indicator overlay if (webcam_emulator_) { @@ -1254,6 +1259,7 @@ void UserInterface::RenderPreview() ImGui::PopStyleColor(1); ImGui::PopFont(); } +#endif ImGui::End(); }