Browse Source

D3D11: Retrieve feature level when using externally created device.

Branimir Karadžić 9 years ago
parent
commit
032ec109dd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/renderer_d3d11.cpp

+ 3 - 1
src/renderer_d3d11.cpp

@@ -995,9 +995,11 @@ namespace bgfx { namespace d3d11
 
 
 				if (NULL == m_deviceCtx)
 				if (NULL == m_deviceCtx)
 				{
 				{
-					BX_TRACE("Unable to create Direct3D11 device.");
+					BX_TRACE("Unable to retrieve Direct3D11 ImmediateContext.");
 					goto error;
 					goto error;
 				}
 				}
+
+				m_featureLevel = m_device->GetFeatureLevel();
 			}
 			}
 
 
 			{
 			{