summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestApp.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-14 07:28:05 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-14 07:28:05 +0000
commite1d6dc27ec013dfecde942c7690432925ce3e23a (patch)
treea21f16fb6959c0f46394057ae65cee470674e916 /Tests/TestApp/src/TestApp.cpp
parentMerge pull request #25 from kkulling/patch-1 (diff)
downloadDiligentEngine-e1d6dc27ec013dfecde942c7690432925ce3e23a.tar.gz
DiligentEngine-e1d6dc27ec013dfecde942c7690432925ce3e23a.zip
Fixed MinGW build
Diffstat (limited to 'Tests/TestApp/src/TestApp.cpp')
-rw-r--r--Tests/TestApp/src/TestApp.cpp9
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)