Skip to content

Commit

Permalink
Merge pull request #4 from w-flo/fix_mipmapcount_flag
Browse files Browse the repository at this point in the history
Set MIPMAPCOUNT flag when writing a mipmapped D3D file
  • Loading branch information
mikedilger authored Oct 28, 2021
2 parents 17dfb3a + 45ed173 commit 1767a40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ impl Header {

if let Some(mml) = mipmap_levels {
if mml > 1 {
header.flags.insert(HeaderFlags::MIPMAPCOUNT);
header.caps.insert(Caps::COMPLEX | Caps::MIPMAP);
}
}
Expand Down

0 comments on commit 1767a40

Please sign in to comment.