mirror of
https://github.com/encounter/ddsfile.git
synced 2026-07-10 03:18:46 -07:00
Merge pull request #4 from w-flo/fix_mipmapcount_flag
Set MIPMAPCOUNT flag when writing a mipmapped D3D file
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user