libobs-winrt: Disable WGC border on insider SDK

Functionality is coming in a future Windows update to disable the yellow
border when using WGC. Add code now to opt in. Will require SDK upgrade
later for OBS build.

winrt::apartment_type::multi_threaded is necessary to dodge assert for
calling get() on RequestAccessAsync result. Don't think I will ever
fully understand COM apartments.
This commit is contained in:
jpark37 2021-01-14 19:09:08 -08:00 • committed by Jim
commit 2e82a6c7e8
2 changed files with 41 additions and 1 deletions

View file

@ -1,6 +1,6 @@
extern "C" EXPORT void winrt_initialize()
{
winrt::init_apartment(winrt::apartment_type::single_threaded);
winrt::init_apartment(winrt::apartment_type::multi_threaded);
}
extern "C" EXPORT void winrt_uninitialize()