Преглед изворни кода

Testing just disabling gfx device enumeration in test mode

JeffR пре 2 година
родитељ
комит
0bdacb8795

+ 2 - 2
Engine/source/gfx/D3D11/gfxD3D11Device.cpp

@@ -252,9 +252,9 @@ DXGI_SWAP_CHAIN_DESC GFXD3D11Device::setupPresentParams(const GFXVideoMode &mode
 
 void GFXD3D11Device::enumerateAdapters(Vector<GFXAdapter*> &adapterList)
 {
-   S32 monitorCount = PlatformWindowManager::get()->getMonitorCount();
-   if (monitorCount < 1)
+#ifdef TORQUE_TESTS_ENABLED
       return;
+#endif
 
    IDXGIAdapter1* EnumAdapter;
    IDXGIFactory1* DXGIFactory;

+ 2 - 2
Engine/source/gfx/gl/sdl/gfxGLDevice.sdl.cpp

@@ -77,9 +77,9 @@ void EnumerateVideoModes(Vector<GFXVideoMode>& outModes)
 
 void GFXGLDevice::enumerateAdapters( Vector<GFXAdapter*> &adapterList )
 {
-   S32 monitorCount = PlatformWindowManager::get()->getMonitorCount();
-   if (monitorCount < 1)
+#ifdef TORQUE_TESTS_ENABLED
       return;
+#endif
 
    AssertFatal( SDL_WasInit(SDL_INIT_VIDEO), "");