fix: a few bit swaps

This commit is contained in:
TrèsAbhi committed 2023-12-28 13:46:22 -06:00
1 parent def75da1d8
commit ce4f7a55b6
2 files changed
+26 -17

No files matched your search

+1 -3
View File
@@ -8,9 +8,7 @@ export async function readTexture(path: string) {
const stream = new DdsStream(decompressedDvpl);
const ddsRaw = await stream.dds();
const png = await sharp(ddsRaw.data, { raw: ddsRaw }).png().toBuffer();
return png;
return await sharp(ddsRaw.data, { raw: ddsRaw }).png().toBuffer();
// const isDds = existsSync(ddsTexturePath);
// const resolvedTexturePath = isDds