Fix build issues

This commit is contained in:
2021-02-06 00:09:08 +01:00
parent d9f233c10c
commit 5a12607b61
4 changed files with 5 additions and 5 deletions

View File

@@ -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>());

View File

@@ -10,9 +10,8 @@
#include <Windows.h>
#else
#include <pthread.h>
#include <fstream>
#endif
#include <fstream>
namespace openVulkanoCpp
{

View File

@@ -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

View File

@@ -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(); });
}
};
}