Просмотр исходного кода

D3D11: Retrieve feature level when using externally created device.

Branimir Karadžić 9 лет назад
Родитель
Сommit
032ec109dd
1 измененных файлов с 3 добавлено и 1 удалено
  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)
 				{
-					BX_TRACE("Unable to create Direct3D11 device.");
+					BX_TRACE("Unable to retrieve Direct3D11 ImmediateContext.");
 					goto error;
 				}
+
+				m_featureLevel = m_device->GetFeatureLevel();
 			}
 
 			{