Fix windows build issue

This commit is contained in:
Georg Hagen
2025-01-11 11:55:12 +01:00
parent 9cb3d4de85
commit 2b93669656

View File

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