Don't use 'sf::err' in public example code

This commit is contained in:
Vittorio Romeo 2021-12-20 00:29:18 +01:00
parent e982d08f37
commit 257c78f07a

View File

@ -9,10 +9,11 @@
#include <SFML/Graphics.hpp> #include <SFML/Graphics.hpp>
#include <SFML/Window.hpp> #include <SFML/Window.hpp>
#include <vector> #include <iostream>
#include <limits> #include <limits>
#include <cstring> #include <vector>
#include <cmath> #include <cmath>
#include <cstring>
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
@ -168,7 +169,7 @@ namespace
// Debug we pass to Vulkan to call when it detects warnings or errors // Debug we pass to Vulkan to call when it detects warnings or errors
VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(VkDebugReportFlagsEXT, VkDebugReportObjectTypeEXT, uint64_t, size_t, int32_t, const char*, const char* pMessage, void*) VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(VkDebugReportFlagsEXT, VkDebugReportObjectTypeEXT, uint64_t, size_t, int32_t, const char*, const char* pMessage, void*)
{ {
sf::err() << pMessage << std::endl; std::cerr << pMessage << std::endl;
return VK_FALSE; return VK_FALSE;
} }