Browse Source

vulkan: only debug print that initialization failed if graphics debug mode is enabled.

Sasha Szpakowski 7 months ago
parent
commit
add3fe3418
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/modules/graphics/vulkan/Graphics.cpp

+ 2 - 1
src/modules/graphics/vulkan/Graphics.cpp

@@ -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;