OSX compilation

This commit is contained in:
Bruno
2021-05-19 23:30:07 +02:00
parent b2284cf1b4
commit 60ec11982a
2 changed files with 10 additions and 0 deletions

4
.gitignore vendored
View File

@@ -19,8 +19,12 @@ rules.ninja
rsc/shaders/paint.fs
<<<<<<< master
osx/.DS_Store
.DS_Store
osx/runvimix
=======
.vscode/settings.json
>>>>>>> OSX compilation

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