Kaynağa Gözat

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

Sasha Szpakowski 7 ay önce
ebeveyn
işleme
add3fe3418
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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;