Skip to content

Conversation

@APAmk2
Copy link
Contributor

@APAmk2 APAmk2 commented Jan 8, 2026

nuff said, i guess.


if( FS_FileExists( texpath, false ))
texture = Image_Quantize(texture);
miptex_t *newMip = static_cast<miptex_t*>(Mem_Alloc(sizeof(miptex_t) + ((texture->width * texture->height * 85) >> 6) + sizeof(short) + 768));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quantizing and then reconstructing mip back sounds like a hack but maybe it's fine for what it tries to do: use generic image loader

and Image_Quantize is going to be no-op for already indexed data.

the other parts of rad might not use miptex in the future and just use rgbdata_t

@SNMetamorph SNMetamorph merged commit 6a9515d into SNMetamorph:master Jan 8, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants