We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf1c617 commit 409733aCopy full SHA for 409733a
src/utils/xrDXT/DXT.cpp
@@ -260,7 +260,7 @@ int DXTCompressImage(LPCSTR out_name, u8* raw_data, u32 w, u32 h, u32 pitch, STe
260
u8* pixel = pImagePixels;
261
for (u32 k = 0; k < w * 2 * h; k++, pixel += 4)
262
{
263
- pixels[k].set(pixel[2], pixel[1], pixel[0], pixel[3]);
+ pixels[k].set(pixel[0], pixel[1], pixel[2], pixel[3]);
264
}
265
inOpt.setMipmapData(pixels, w, h);
266
result = nvtt::Compressor().process(inOpt, compOpt, outOpt);
@@ -272,7 +272,7 @@ int DXTCompressImage(LPCSTR out_name, u8* raw_data, u32 w, u32 h, u32 pitch, STe
272
rgba_t* pixels = pImage.pixels();
273
u8* pixel = raw_data;
274
for (u32 k = 0; k < w * h; k++, pixel += 4)
275
276
277
278
0 commit comments