Skip to content

fix small mistakes in header of DDS file that would prevent loading i…#1

Open
thomatoes50 wants to merge 1 commit intoDeanoC:masterfrom
thomatoes50:master
Open

fix small mistakes in header of DDS file that would prevent loading i…#1
thomatoes50 wants to merge 1 commit intoDeanoC:masterfrom
thomatoes50:master

Conversation

@thomatoes50
Copy link

…n DX

My test was just being able to display the texture made from your library in Visual studio (it use DirectX i think)
I also tried XnView on some texture, that the only software that recalculate (don't trust the header) PitchOrLinearSize from the file

exemple
The highlighted variables are the one fixed. They ALL need to have valid values or else DX reject the file

I was not able to test mipmaps with your library, there is a stack corruption happening.
When i have time i will create and upload a small project on github.

Here are the samples
https://nextcloud.beamng.com/s/QGqZZYmK78qMBrD

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.

1 participant