Explorar el Código

Fix compilation in release mode

BearishSun hace 9 años
padre
commit
29b0fda837
Se han modificado 1 ficheros con 7 adiciones y 3 borrados
  1. 7 3
      Source/BansheeVulkanRenderAPI/Source/BsVulkanRenderAPI.cpp

+ 7 - 3
Source/BansheeVulkanRenderAPI/Source/BsVulkanRenderAPI.cpp

@@ -78,8 +78,12 @@ namespace bs { namespace ct
 	}
 
 	VulkanRenderAPI::VulkanRenderAPI()
-		:mInstance(nullptr), mDebugCallback(nullptr)
-	{ }
+		:mInstance(nullptr)
+	{
+#if BS_DEBUG_MODE
+		mDebugCallback = nullptr;
+#endif
+	}
 
 	VulkanRenderAPI::~VulkanRenderAPI()
 	{
@@ -531,7 +535,7 @@ namespace bs { namespace ct
 
 		cmdBuffer->submit(syncMask);
 	}
-	
+
 	void VulkanRenderAPI::convertProjectionMatrix(const Matrix4& matrix, Matrix4& dest)
 	{
 		dest = matrix;