Fix build issues
This commit is contained in:
@@ -52,7 +52,7 @@ namespace openVulkanoCpp
|
||||
SINKS.push_back(std::make_shared<spdlog::sinks::stdout_color_sink_mt>());
|
||||
#endif
|
||||
#ifdef _MSC_VER // If it was build with msvc in debug we can use the msvc sink
|
||||
sinks.push_back(std::make_shared<spdlog::sinks::msvc_sink_mt>());
|
||||
SINKS.push_back(std::make_shared<spdlog::sinks::msvc_sink_mt>());
|
||||
#endif
|
||||
// Make sure that there is always a sink for the loggers
|
||||
if (SINKS.empty()) SINKS.push_back(std::make_shared<spdlog::sinks::null_sink_mt>());
|
||||
|
||||
@@ -10,9 +10,8 @@
|
||||
#include <Windows.h>
|
||||
#else
|
||||
#include <pthread.h>
|
||||
#include <fstream>
|
||||
|
||||
#endif
|
||||
#include <fstream>
|
||||
|
||||
namespace openVulkanoCpp
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "PlatformGLFW.hpp"
|
||||
#include "WindowGLFW.hpp"
|
||||
#include "Base/PlatformEnums.hpp"
|
||||
#include "Host/PlatformProducer.hpp"
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
namespace openVulkanoCpp::GLFW
|
||||
|
||||
@@ -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(); });
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user