diff options
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(); } }; |
