[fixed]CXFileReader.cpp -Irrlicht reads ARGB instead of RGBA

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
simply
Posts: 7
Joined: Mon Jun 26, 2006 9:49 am

[fixed]CXFileReader.cpp -Irrlicht reads ARGB instead of RGBA

Post by simply »

I found a bug in the file CXFileReader.cpp where Irrlicht reads ARGB, but Microsoft's X-File specification states that the values have to be in RGBA order.

It's at the end of the file:
inline bool CXFileReader::readRGBA(video::SColorf& color)
{
color.a = readFloat();
color.r = readFloat();
color.g = readFloat();
color.b = readFloat();
return checkForTwoFollowingSemicolons();
}
should be
inline bool CXFileReader::readRGBA(video::SColorf& color)
{
color.r = readFloat();
color.g = readFloat();
color.b = readFloat();
color.a = readFloat();

return checkForTwoFollowingSemicolons();
}
Thanks for fixing.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, seems so. Will change it soon.
Post Reply