Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output DDS file missing required flags DDSD_CAPS, DDSD_PIXELFORMAT #302

Open
tamlin-mike opened this issue Mar 1, 2024 · 0 comments
Open

Comments

@tamlin-mike
Copy link

From documentation, a valid .DDS file must have at least the following flags set in DDS_HEADER/DDSURFACEDESC2 dwFlags:

DDSD_CAPS (0x1)
DDSD_HEIGHT (0x2)
DDSD_WIDTH (0x4)
DDSD_PIXELFORMAT (0x1000)

A simple test (compressonatorcli.exe -fd BC7 -mipsize 1 infile.png outfile.dds) produced an invalid .DDS file, missing both DDSD_CAPS and DDSD_PIXELFORMAT.

The fix is obvious.

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

No branches or pull requests

1 participant