=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3dx9: Fix miplevels handling for DDS file format.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 25 09:38:01 CDT 2015
Module: wine
Branch: master
Commit: 853be6e1d86b7a23d16b59d5c9cb75095a9645c6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=853be6e1d86b7a23d16b59d5c9cb75095a9645c6
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Thu Aug 20 00:35:08 2015 +0200
d3dx9: Fix miplevels handling for DDS file format.
---
dlls/d3dx9_36/surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c
index 6150575..c7ed74b 100644
--- a/dlls/d3dx9_36/surface.c
+++ b/dlls/d3dx9_36/surface.c
@@ -390,7 +390,7 @@ static HRESULT get_image_info_from_dds(const void *buffer, UINT length, D3DXIMAG
info->Width = header->width;
info->Height = header->height;
info->Depth = 1;
- info->MipLevels = (header->flags & DDS_MIPMAPCOUNT) ? header->miplevels : 1;
+ info->MipLevels = header->miplevels ? header->miplevels : 1;
info->Format = dds_pixel_format_to_d3dformat(&header->pixel_format);
if (info->Format == D3DFMT_UNKNOWN)
More information about the wine-cvs
mailing list