Attempt to use DXGI 1.1 when possible
OpenVR requires DXGI 1.1 to share textures using a keyed mutex to guantee ordering between the compositor and application. OpenVR will startup with an adpater created by a 1.0 factory, but will fail when submitting frames to the compositor. See: https://steamcommunity.com/app/358720/discussions/0/405692224241830277/
This commit is contained in:
parent
51c49e71c5
commit
297304ebdd
@ -800,7 +800,11 @@ namespace bgfx { namespace d3d11
|
|||||||
|
|
||||||
errorState = ErrorState::LoadedDXGI;
|
errorState = ErrorState::LoadedDXGI;
|
||||||
|
|
||||||
CreateDXGIFactory = (PFN_CREATE_DXGI_FACTORY)bx::dlsym(m_dxgidll, "CreateDXGIFactory");
|
CreateDXGIFactory = (PFN_CREATE_DXGI_FACTORY)bx::dlsym(m_dxgidll, "CreateDXGIFactory1");
|
||||||
|
if (NULL == CreateDXGIFactory)
|
||||||
|
{
|
||||||
|
CreateDXGIFactory = (PFN_CREATE_DXGI_FACTORY)bx::dlsym(m_dxgidll, "CreateDXGIFactory");
|
||||||
|
}
|
||||||
if (NULL == CreateDXGIFactory)
|
if (NULL == CreateDXGIFactory)
|
||||||
{
|
{
|
||||||
BX_TRACE("Function CreateDXGIFactory not found.");
|
BX_TRACE("Function CreateDXGIFactory not found.");
|
||||||
|
Loading…
Reference in New Issue
Block a user