Skip to content

Commit

Permalink
[Android] Workaround for crash in vkCreateInstance() on Android Emula…
Browse files Browse the repository at this point in the history
…tor 35.1.4, macOS 14.4.1, M1 Pro. Note, the whole emulator is crashed, not only the Ogre process inside it.
  • Loading branch information
eugenegff committed Apr 15, 2024
1 parent 55e99d7 commit 0820d68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RenderSystems/Vulkan/src/OgreVulkanDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ namespace Ogre
createInfo.enabledExtensionCount = static_cast<uint32>( extensions.size() );
createInfo.ppEnabledExtensionNames = extensions.begin();

#if OGRE_DEBUG_MODE >= OGRE_DEBUG_HIGH
#if OGRE_DEBUG_MODE >= OGRE_DEBUG_HIGH && !defined OGRE_VULKAN_WINDOW_ANDROID
// Workaround: skip following code on Android as it causes crash in vkCreateInstance() on Android
// Emulator 35.1.4, macOS 14.4.1, M1 Pro, despite declared support for rev.10 VK_EXT_debug_report
VkDebugReportCallbackCreateInfoEXT debugCb = addDebugCallback( debugCallback, renderSystem );
createInfo.pNext = &debugCb;
#endif
Expand Down

0 comments on commit 0820d68

Please sign in to comment.