diff --git a/openVulkanoCpp/Base/Logger.cpp b/openVulkanoCpp/Base/Logger.cpp index db5f323..cc10936 100644 --- a/openVulkanoCpp/Base/Logger.cpp +++ b/openVulkanoCpp/Base/Logger.cpp @@ -52,7 +52,7 @@ namespace openVulkanoCpp SINKS.push_back(std::make_shared()); #endif #ifdef _MSC_VER // If it was build with msvc in debug we can use the msvc sink - sinks.push_back(std::make_shared()); + SINKS.push_back(std::make_shared()); #endif // Make sure that there is always a sink for the loggers if (SINKS.empty()) SINKS.push_back(std::make_shared()); diff --git a/openVulkanoCpp/Base/Utils.cpp b/openVulkanoCpp/Base/Utils.cpp index afe9de9..a7a8cd7 100644 --- a/openVulkanoCpp/Base/Utils.cpp +++ b/openVulkanoCpp/Base/Utils.cpp @@ -10,9 +10,8 @@ #include #else #include -#include - #endif +#include namespace openVulkanoCpp { diff --git a/openVulkanoCpp/Host/GLFW/PlatformGLFW.cpp b/openVulkanoCpp/Host/GLFW/PlatformGLFW.cpp index 3a75e15..bfa07a7 100644 --- a/openVulkanoCpp/Host/GLFW/PlatformGLFW.cpp +++ b/openVulkanoCpp/Host/GLFW/PlatformGLFW.cpp @@ -7,6 +7,7 @@ #include "PlatformGLFW.hpp" #include "WindowGLFW.hpp" #include "Base/PlatformEnums.hpp" +#include "Host/PlatformProducer.hpp" #include namespace openVulkanoCpp::GLFW diff --git a/openVulkanoCpp/Host/PlatformProducer.hpp b/openVulkanoCpp/Host/PlatformProducer.hpp index bd7834e..7ded1cf 100644 --- a/openVulkanoCpp/Host/PlatformProducer.hpp +++ b/openVulkanoCpp/Host/PlatformProducer.hpp @@ -47,7 +47,7 @@ namespace openVulkanoCpp { PlatformProducerRegistration(RenderAPI renderApi) { - PlatformProducer::RegisterPlatformProducer(renderApi, []() -> IPlatform* { new PLATFORM_CLASS(); }); + PlatformProducer::RegisterPlatformProducer(renderApi, []() -> IPlatform* { return new PLATFORM_CLASS(); }); } }; @@ -56,7 +56,7 @@ namespace openVulkanoCpp { RendererProducerRegistration(RenderAPI renderApi) { - PlatformProducer::RegisterRendererProducer(renderApi, []() -> IRenderer* { new RENDERER_CLASS(); }); + PlatformProducer::RegisterRendererProducer(renderApi, []() -> IRenderer* { return new RENDERER_CLASS(); }); } }; }