diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-25 17:27:22 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-25 17:27:22 +0000 |
| commit | 36340071c7bee4b120e81a359e98028f58859810 (patch) | |
| tree | 7365064e128b05964a5de3cdf04a82c2bbaf87ef /Tests/TestApp/src/MacOS/TestAppMacOS.cpp | |
| parent | Updated build script for iOS (diff) | |
| download | DiligentEngine-36340071c7bee4b120e81a359e98028f58859810.tar.gz DiligentEngine-36340071c7bee4b120e81a359e98028f58859810.zip | |
Enabled Vulkan mode on Mac (preliminary implementation)
Diffstat (limited to 'Tests/TestApp/src/MacOS/TestAppMacOS.cpp')
| -rw-r--r-- | Tests/TestApp/src/MacOS/TestAppMacOS.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/TestApp/src/MacOS/TestAppMacOS.cpp b/Tests/TestApp/src/MacOS/TestAppMacOS.cpp index a5280ce..9ffc275 100644 --- a/Tests/TestApp/src/MacOS/TestAppMacOS.cpp +++ b/Tests/TestApp/src/MacOS/TestAppMacOS.cpp @@ -34,9 +34,10 @@ public: m_DeviceType = DeviceType::OpenGL; } - virtual void OnGLContextCreated()override final + virtual void Initialize(void* view)override final { - InitializeDiligentEngine(nullptr); + m_DeviceType = view == nullptr ? DeviceType::OpenGL : DeviceType::Vulkan; + InitializeDiligentEngine(view); InitializeRenderers(); } }; |
