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:
parent
71d5451670
commit
2e82a6c7e8
2 changed files with 41 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue