Return proper Direct2D version if using ID2D1DeviceContext is enabled

ID2D1DeviceContext is available since Direct2D 1.1.
This commit is contained in:
Artur Wieczorek
2021-02-14 00:10:37 +01:00
parent 3c7493a289
commit 0723da5168

View File

@@ -174,9 +174,10 @@ private:
#if wxD2D_DEVICE_CONTEXT_SUPPORTED
wxLOAD_FUNC(m_dllDirect3d, D3D11CreateDevice);
#endif
m_D2DRuntimeVersion = wxD2D_VERSION_1_1;
#else
m_D2DRuntimeVersion = wxD2D_VERSION_1_0;
#endif
return true;
}