Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1a4f1edf
Commit
1a4f1edf
authored
May 18, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use actual level count for computing the number of loaded mipmaps.
parent
7d07f1f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
texture.c
dlls/d3dx9_36/texture.c
+2
-2
No files found.
dlls/d3dx9_36/texture.c
View file @
1a4f1edf
...
...
@@ -636,7 +636,7 @@ HRESULT WINAPI D3DXCreateTextureFromFileInMemoryEx(LPDIRECT3DDEVICE9 device,
return
hr
;
}
loaded_miplevels
=
min
(
miplevels
,
imginfo
.
MipLevels
);
loaded_miplevels
=
min
(
IDirect3DTexture9_GetLevelCount
(
*
texptr
)
,
imginfo
.
MipLevels
);
hr
=
D3DXFilterTexture
((
IDirect3DBaseTexture9
*
)
*
texptr
,
palette
,
loaded_miplevels
-
1
,
mipfilter
);
if
(
FAILED
(
hr
))
...
...
@@ -1209,7 +1209,7 @@ HRESULT WINAPI D3DXCreateCubeTextureFromFileInMemoryEx(IDirect3DDevice9 *device,
return
hr
;
}
loaded_miplevels
=
min
(
mip_levels
,
img_info
.
MipLevels
);
loaded_miplevels
=
min
(
IDirect3DCubeTexture9_GetLevelCount
(
tex
)
,
img_info
.
MipLevels
);
hr
=
D3DXFilterTexture
((
IDirect3DBaseTexture9
*
)
tex
,
palette
,
loaded_miplevels
-
1
,
mip_filter
);
if
(
FAILED
(
hr
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment