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

Function CorrectEndDXT1

DevIL/src-IL/src/il_dds-save.cpp:1200–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198
1199
1200void CorrectEndDXT1(ILushort *ex0, ILushort *ex1, ILboolean HasAlpha)
1201{
1202 ILushort Temp;
1203
1204 if (HasAlpha) {
1205 if (*ex0 > *ex1) {
1206 Temp = *ex0;
1207 *ex0 = *ex1;
1208 *ex1 = Temp;
1209 }
1210 }
1211 else {
1212 if (*ex0 < *ex1) {
1213 Temp = *ex0;
1214 *ex0 = *ex1;
1215 *ex1 = Temp;
1216 }
1217 }
1218
1219 return;
1220}
1221
1222
1223void PreMult(ILushort *Data, ILubyte *Alpha)

Callers 1

CompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected