Skip to content

Conversation

@gamingdoom
Copy link

This commit contains a bugfix related to bitmap scaling. It fixes the CopyPixels function rejecting parameters that are valid on windows, where the destination bitmap buffer doesn't include padding for the last scanline. This behavior is relied upon by DirectXTex's mipmap generation.

This commit fixes the black texture problem in BeamNG.drive reported in ValveSoftware/Proton#1237

This commit has just been merged into proton experimental bleeding-edge (here).

… than necessary.

Only `bytesperrow` bytes are written to each row of the output rect.
Therefore the last row need not be padded to `cbStride` bytes.
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