OSX compilation

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

2
.gitignore vendored
View File

@@ -19,6 +19,8 @@ rules.ninja
rsc/shaders/paint.fs
.vscode/settings.json
osx/.DS_Store
.DS_Store

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