- Added some fixes to texture data reading / writting in PrimitiveFile code.