OSX compilation

This commit is contained in:
Bruno
2021-05-19 23:30:07 +02:00
parent 80cf57a979
commit 74a9b229d0
2 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View File

@@ -18,3 +18,5 @@ rules.ninja
/CMakeLists.txt.user.*
rsc/shaders/paint.fs
.vscode/settings.json

View File

@@ -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();
}