diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-14 07:28:05 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-14 07:28:05 +0000 |
| commit | e1d6dc27ec013dfecde942c7690432925ce3e23a (patch) | |
| tree | a21f16fb6959c0f46394057ae65cee470674e916 /Tests/TestApp/src/TestApp.cpp | |
| parent | Merge pull request #25 from kkulling/patch-1 (diff) | |
| download | DiligentEngine-e1d6dc27ec013dfecde942c7690432925ce3e23a.tar.gz DiligentEngine-e1d6dc27ec013dfecde942c7690432925ce3e23a.zip | |
Fixed MinGW build
Diffstat (limited to 'Tests/TestApp/src/TestApp.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestApp.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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) |
