Move DXGI_FORMAT definition into separate namespace to make it compatible to existing definitions

This commit is contained in:
Jan
2024-01-06 20:41:50 +01:00
parent cd53c3cbe4
commit 44b0f4da5e
8 changed files with 160 additions and 155 deletions

View File

@ -351,7 +351,7 @@ namespace T6
else
textureLoader.Type(TextureType::T_2D);
textureLoader.Format(static_cast<DXGI_FORMAT>(loadDef->format));
textureLoader.Format(static_cast<oat::DXGI_FORMAT>(loadDef->format));
textureLoader.HasMipMaps(!(loadDef->flags & iwi27::IMG_FLAG_NOMIPMAPS));
Texture* loadedTexture = textureLoader.LoadTexture(image->texture.loadDef->data);