I don't know, it this is already fixed, but when I try to store a texture with the format PFG_R16_UNORM . I get a Heap corruption crash in FreeImage.
When I store a texture in PFG_R8_UNORM format, it does not crash and a valid texture will be stored.
I tested it in terra, in the function "createHeightmap".
Code: Select all
m_heightMapTex->writeContentsToFile("path/TestHeightMap.png", 0, m_heightMapTex->getNumMipmaps());
Lax