Fix windows build issue
This commit is contained in:
@@ -27,7 +27,8 @@ namespace OpenVulkano::Scene
|
|||||||
if (!*this) { Logger::DATA->warn("Can't save empty font atlas!"); return; };
|
if (!*this) { Logger::DATA->warn("Can't save empty font atlas!"); return; };
|
||||||
|
|
||||||
stbi_flip_vertically_on_write(1);
|
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);
|
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);
|
std::fstream fs(path, std::ios_base::out | std::ios_base::binary | std::ios_base::app);
|
||||||
|
|||||||
Reference in New Issue
Block a user