Update EnableValidationWithCallback.cpp (#466)

Quick patch that fixes the `EnableValidationWithCallback` sample:
  There's no `str()` method here, should use `c_str()`;  
  *but* also, you can print the std::string directly to `std::cout`.

Patches remove `.str()` from printing line when WIN32 is not defined.
This commit is contained in:
Arthur Brainville 2020-01-06 12:16:35 +01:00 committed by Andreas Süßenbach
parent 196de24461
commit 4320950db1

View File

@ -82,7 +82,7 @@ VkBool32 debugMessageFunc(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity
#ifdef _WIN32
MessageBox(NULL, message.c_str(), "Alert", MB_OK);
#else
std::cout << message.str() << std::endl;
std::cout << message << std::endl;
#endif
return false;