DWrite: Use multithreaded D2D factory

Fixes #886
This commit is contained in:
Luca Bacci 2025-11-03 15:16:00 +01:00
parent 04656d7450
commit 529c7f6da7

View file

@ -147,7 +147,7 @@ public:
if (createD2DFactory) {
D2D1_FACTORY_OPTIONS options;
options.debugLevel = D2D1_DEBUG_LEVEL_NONE;
createD2DFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED,
createD2DFactory(D2D1_FACTORY_TYPE_MULTI_THREADED,
__uuidof(ID2D1Factory),
&options,
(void**)&mFactoryInstance);