utility: Managed OBS Graphics Context

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-11-07 22:08:21 +01:00
parent 412c9fc18b
commit 24d92e4b92
+11
View File
@@ -87,4 +87,15 @@ namespace obsffmpeg {
{
return obs_get_version() < MAKE_SEMANTIC_VERSION(24, 0, 0);
}
struct obs_graphics {
obs_graphics()
{
obs_enter_graphics();
}
~obs_graphics()
{
obs_leave_graphics();
}
};
} // namespace obsffmpeg