Return proper Direct2D version if using ID2D1DeviceContext is enabled
ID2D1DeviceContext is available since Direct2D 1.1.
This commit is contained in:
@@ -174,9 +174,10 @@ private:
|
|||||||
|
|
||||||
#if wxD2D_DEVICE_CONTEXT_SUPPORTED
|
#if wxD2D_DEVICE_CONTEXT_SUPPORTED
|
||||||
wxLOAD_FUNC(m_dllDirect3d, D3D11CreateDevice);
|
wxLOAD_FUNC(m_dllDirect3d, D3D11CreateDevice);
|
||||||
#endif
|
m_D2DRuntimeVersion = wxD2D_VERSION_1_1;
|
||||||
|
#else
|
||||||
m_D2DRuntimeVersion = wxD2D_VERSION_1_0;
|
m_D2DRuntimeVersion = wxD2D_VERSION_1_0;
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user