From e1d6dc27ec013dfecde942c7690432925ce3e23a Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 13 Dec 2018 23:28:05 -0800 Subject: Fixed MinGW build --- Tests/TestApp/src/TestApp.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Tests/TestApp/src/TestApp.cpp') diff --git a/Tests/TestApp/src/TestApp.cpp b/Tests/TestApp/src/TestApp.cpp index 9fc9802..f0fbb08 100644 --- a/Tests/TestApp/src/TestApp.cpp +++ b/Tests/TestApp/src/TestApp.cpp @@ -596,8 +596,15 @@ void TestApp::ProcessCommandLine(const char *CmdLine) } else { - LOG_INFO_MESSAGE("Device type is not specified. Using D3D11 device"); +#if D3D12_SUPPORTED + m_DeviceType = DeviceType::D3D12; +#elif VULKAN_SUPPORTED + m_DeviceType = DeviceType::Vulkan; +#elif D3D11_SUPPORTED m_DeviceType = DeviceType::D3D11; +#elif GL_SUPPORTED || GLES_SUPPORTED + m_DeviceType = DeviceType::OpenGL; +#endif } switch (m_DeviceType) -- cgit v1.2.3