MCPcopy Create free account
hub / github.com/DentonW/DevIL / DecompressDXT2

Function DecompressDXT2

DevIL/src-IL/src/il_dds.cpp:1023–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1021
1022
1023ILboolean DecompressDXT2(ILimage *lImage, ILubyte *lCompData)
1024{
1025 // Can do color & alpha same as dxt3, but color is pre-multiplied
1026 // so the result will be wrong unless corrected.
1027 if (!DecompressDXT3(Image, CompData))
1028 return IL_FALSE;
1029 CorrectPreMult();
1030
1031 return IL_TRUE;
1032}
1033
1034
1035ILboolean DecompressDXT3(ILimage *lImage, ILubyte *lCompData)

Callers 1

DdsDecompressFunction · 0.85

Calls 2

DecompressDXT3Function · 0.85
CorrectPreMultFunction · 0.85

Tested by

no test coverage detected