From 2b936696560dd505543012a59aeccccde23612b3 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Sat, 11 Jan 2025 11:55:12 +0100 Subject: [PATCH] Fix windows build issue --- openVulkanoCpp/Scene/Text/FontAtlas.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openVulkanoCpp/Scene/Text/FontAtlas.cpp b/openVulkanoCpp/Scene/Text/FontAtlas.cpp index 6e3e2d5..200f15d 100644 --- a/openVulkanoCpp/Scene/Text/FontAtlas.cpp +++ b/openVulkanoCpp/Scene/Text/FontAtlas.cpp @@ -27,7 +27,8 @@ namespace OpenVulkano::Scene if (!*this) { Logger::DATA->warn("Can't save empty font atlas!"); return; }; stbi_flip_vertically_on_write(1); - stbi_write_png(path.c_str(), m_texture.resolution.x, m_texture.resolution.y, m_texture.format.GetBytesPerPixel(), + std::string p = path.string(); + stbi_write_png(p.c_str(), m_texture.resolution.x, m_texture.resolution.y, m_texture.format.GetBytesPerPixel(), m_texture.textureBuffer, m_texture.format.GetBytesPerPixel() * m_texture.resolution.x); std::fstream fs(path, std::ios_base::out | std::ios_base::binary | std::ios_base::app);