Move GLFW error handling into PlatformGLFW

This commit is contained in:
2020-10-26 23:23:23 +01:00
parent ae76fa59e9
commit c219fc3778
4 changed files with 14 additions and 17 deletions

View File

@@ -61,8 +61,6 @@ namespace openVulkanoCpp::GLFW
void WindowGLFW::RegisterCallbacks() const
{
glfwSetErrorCallback(ErrorCallback);
glfwSetDropCallback(window, DropCallback);
glfwSetFramebufferSizeCallback(window, ResizeCallback);
glfwSetWindowFocusCallback(window, FocusCallback);
@@ -405,11 +403,6 @@ namespace openVulkanoCpp::GLFW
//TODO something useful
}
void WindowGLFW::ErrorCallback(const int error, const char* description)
{
Logger::WINDOW->error("GLFW error (e{0}): {1}", error, description);
}
std::vector<std::string> WindowGLFW::GetVulkanRequiredInstanceExtensions()
{
std::vector<std::string> result;