Skip to content

Commit

Permalink
[Vk] Fix crash if loader exists but no device can draw to screen (#496)
Browse files Browse the repository at this point in the history
Fixes #496
  • Loading branch information
darksylinc committed Jan 26, 2025
1 parent 7347976 commit d4625d7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1002,11 +1002,10 @@ namespace Ogre

if( !bAnySupported )
{
LogManager::getSingleton().logMessage(
"Vulkan support found but instance is uncapable of "
"drawing to the screen! Cannot continue",
LML_CRITICAL );
return;
OGRE_EXCEPT( Exception::ERR_RENDERINGAPI_ERROR,
"Vulkan layer loaded but instance is uncapable of drawing to the screen! "
"Cannot continue.",
"VulkanRenderSystem::initializeVkInstance" );
}

// Check supported layers we may want
Expand Down

0 comments on commit d4625d7

Please sign in to comment.