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
c3d3dcec
Commit
c3d3dcec
authored
Feb 15, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Feb 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Handle mipmapped TEXTUREMIN render states.
parent
19baae31
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
device.c
dlls/ddraw/device.c
+22
-1
No files found.
dlls/ddraw/device.c
View file @
c3d3dcec
...
...
@@ -2317,6 +2317,7 @@ IDirect3DDeviceImpl_7_SetRenderState(IDirect3DDevice7 *iface,
case
D3DRENDERSTATE_TEXTUREMIN
:
{
WINED3DTEXTUREFILTERTYPE
tex_min
=
WINED3DTEXF_NONE
;
WINED3DTEXTUREFILTERTYPE
tex_mip
=
WINED3DTEXF_NONE
;
switch
((
D3DTEXTUREFILTER
)
Value
)
{
...
...
@@ -2326,10 +2327,30 @@ IDirect3DDeviceImpl_7_SetRenderState(IDirect3DDevice7 *iface,
case
D3DFILTER_LINEAR
:
tex_min
=
WINED3DTEXF_LINEAR
;
break
;
case
D3DFILTER_MIPNEAREST
:
tex_min
=
WINED3DTEXF_NONE
;
tex_mip
=
WINED3DTEXF_POINT
;
break
;
case
D3DFILTER_MIPLINEAR
:
tex_min
=
WINED3DTEXF_NONE
;
tex_mip
=
WINED3DTEXF_LINEAR
;
break
;
case
D3DFILTER_LINEARMIPNEAREST
:
tex_min
=
WINED3DTEXF_POINT
;
tex_mip
=
WINED3DTEXF_LINEAR
;
break
;
case
D3DFILTER_LINEARMIPLINEAR
:
tex_min
=
WINED3DTEXF_LINEAR
;
tex_mip
=
WINED3DTEXF_LINEAR
;
break
;
default:
ERR
(
"Unhandled texture m
ag
%d !
\n
"
,
Value
);
ERR
(
"Unhandled texture m
in
%d !
\n
"
,
Value
);
}
IWineD3DDevice_SetSamplerState
(
This
->
wineD3DDevice
,
0
,
WINED3DSAMP_MIPFILTER
,
tex_mip
);
return
IWineD3DDevice_SetSamplerState
(
This
->
wineD3DDevice
,
0
,
WINED3DSAMP_MINFILTER
,
tex_min
);
...
...
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