Skip to content

Commit

Permalink
vulkan: only debug print that initialization failed if graphics debug…
Browse files Browse the repository at this point in the history
… mode is enabled.
  • Loading branch information
slime73 committed Jan 11, 2025
1 parent 652b012 commit add3fe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/graphics/vulkan/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3356,7 +3356,8 @@ love::graphics::Graphics *createInstance()
}
catch (love::Exception &e)
{
printf("Cannot create Vulkan renderer: %s\n", e.what());
if (isDebugEnabled())
printf("Cannot create Vulkan renderer: %s\n", e.what());
}

return instance;
Expand Down

0 comments on commit add3fe3

Please sign in to comment.