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