Skip to content

Conversation

@leobenaducci
Copy link

…ssed formats

@redorav
Copy link
Owner

redorav commented Jun 7, 2025

Hey thanks for the PR, I'm not sure why this needed changing, could you explain what issues you were having? The function bits per pixel or block already takes uncompressed formats into account

@leobenaducci
Copy link
Author

Hi, the problem is that in some cases the pitch and the full image size is not correct, 24-bit RGB files format is set to B8G8R8X8_UNORM, same as some 32-bit when ddspf.flags & DDS_RGB.
This change ensures that the bpp is taken from the DDS header itself
kueken8_bgr8_unorm.zip

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.

2 participants