Page 1 of 1

dds loader bug

Posted: Fri Feb 11, 2011 3:42 pm
by loverlinfish
the loader create a ARGB8888's image.
so
struct ddsColor
{
u8 r, g, b, a; <== is ABGR
} PACK_STRUCT;

maybe is error.

I change to
struct ddsColor
{
u8 b, g, r, a;
} PACK_STRUCT;

the color is ok.

Posted: Mon May 16, 2011 11:42 pm
by Reiko
this does fix it

cheers

Re: dds loader bug

Posted: Fri Aug 15, 2014 3:36 pm
by JLouisB
This change has fixed my problem of inverses colors with dds files.

My test case files :
https://dl.dropboxusercontent.com/u/244 ... ug_dds.zip

Can you fix this ?

Re: dds loader bug

Posted: Sat Aug 16, 2014 9:52 am
by CuteAlien
Thanks for the info and the test-case. I've passed it on to Thomas who wrote that code to my knowledge in case he has some feedback for this. I had missed this report before for some reason.