egTexture.cpp:
Code:
if( !(ddsHeader.caps.dwCaps2 & DDSCAPS2_CM_COMPLETE) )
raiseError( "DDS cubemap does not contain all cube sides" );
Is this correct? What about
Code:
if((ddsHeader.caps.dwCaps2 & DDSCAPS2_CM_COMPLETE) != DDSCAPS2_CM_COMPLETE )
?
Looks more like what was intended.
EDIT:
Code:
if( ddsHeader.pixFormat.dwRBitMask == 0x00ff0000 &&
ddsHeader.pixFormat.dwGBitMask == 0x0000ff00 &&
ddsHeader.pixFormat.dwBBitMask == 0x000000ff ) pixFmt = pfBGR;
else
if( ddsHeader.pixFormat.dwRBitMask == 0x00ff0000 &&
ddsHeader.pixFormat.dwGBitMask == 0x0000ff00 &&
ddsHeader.pixFormat.dwBBitMask == 0x000000ff ) pixFmt = pfRGB;
2x the same check?