Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9b867f4d
Commit
9b867f4d
authored
Apr 29, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Forward the mag filter correctly to wined3d.
Fixes the erros when using anisotropic mag filtering in the d3d7 filter demo.
parent
0fb41a88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
7 deletions
+37
-7
device.c
dlls/ddraw/device.c
+37
-7
No files found.
dlls/ddraw/device.c
View file @
9b867f4d
...
@@ -4032,12 +4032,28 @@ IDirect3DDeviceImpl_7_GetTextureStageState(IDirect3DDevice7 *iface,
...
@@ -4032,12 +4032,28 @@ IDirect3DDeviceImpl_7_GetTextureStageState(IDirect3DDevice7 *iface,
Stage
,
Stage
,
WINED3DSAMP_MINFILTER
,
WINED3DSAMP_MINFILTER
,
State
);
State
);
/*
Same for MAGFILTER
*/
/*
Magfilter has slightly different values
*/
case
D3DTSS_MAGFILTER
:
case
D3DTSS_MAGFILTER
:
return
IWineD3DDevice_GetSamplerState
(
This
->
wineD3DDevice
,
{
Stage
,
HRESULT
hr
;
WINED3DSAMP_MAGFILTER
,
WINED3DTEXTUREFILTERTYPE
wined3dfilter
;
State
);
hr
=
IWineD3DDevice_GetSamplerState
(
This
->
wineD3DDevice
,
Stage
,
WINED3DSAMP_MAGFILTER
,
&
wined3dfilter
);
switch
(
wined3dfilter
)
{
case
WINED3DTEXF_POINT
:
*
State
=
D3DTFG_POINT
;
break
;
case
WINED3DTEXF_LINEAR
:
*
State
=
D3DTFG_LINEAR
;
break
;
case
WINED3DTEXF_ANISOTROPIC
:
*
State
=
D3DTFG_ANISOTROPIC
;
break
;
case
WINED3DTEXF_FLATCUBIC
:
*
State
=
D3DTFG_FLATCUBIC
;
break
;
case
WINED3DTEXF_GAUSSIANCUBIC
:
*
State
=
D3DTFG_GAUSSIANCUBIC
;
break
;
default:
ERR
(
"Unexpected wined3d mag filter value %d
\n
"
,
wined3dfilter
);
*
State
=
D3DTFG_POINT
;
}
return
hr
;
}
case
D3DTSS_ADDRESS
:
case
D3DTSS_ADDRESS
:
case
D3DTSS_ADDRESSU
:
case
D3DTSS_ADDRESSU
:
...
@@ -4126,12 +4142,26 @@ IDirect3DDeviceImpl_7_SetTextureStageState(IDirect3DDevice7 *iface,
...
@@ -4126,12 +4142,26 @@ IDirect3DDeviceImpl_7_SetTextureStageState(IDirect3DDevice7 *iface,
Stage
,
Stage
,
WINED3DSAMP_MINFILTER
,
WINED3DSAMP_MINFILTER
,
State
);
State
);
/*
Same for MAGFILTER
*/
/*
Magfilter has slightly different values
*/
case
D3DTSS_MAGFILTER
:
case
D3DTSS_MAGFILTER
:
{
WINED3DTEXTUREFILTERTYPE
wined3dfilter
;
switch
((
D3DTEXTUREMAGFILTER
)
State
)
{
case
D3DTFG_POINT
:
wined3dfilter
=
WINED3DTEXF_POINT
;
break
;
case
D3DTFG_LINEAR
:
wined3dfilter
=
WINED3DTEXF_LINEAR
;
break
;
case
D3DTFG_FLATCUBIC
:
wined3dfilter
=
WINED3DTEXF_FLATCUBIC
;
break
;
case
D3DTFG_GAUSSIANCUBIC
:
wined3dfilter
=
WINED3DTEXF_GAUSSIANCUBIC
;
break
;
case
D3DTFG_ANISOTROPIC
:
wined3dfilter
=
WINED3DTEXF_ANISOTROPIC
;
break
;
default:
ERR
(
"Unexpected d3d7 mag filter type %d
\n
"
,
State
);
wined3dfilter
=
WINED3DTEXF_POINT
;
}
return
IWineD3DDevice_SetSamplerState
(
This
->
wineD3DDevice
,
return
IWineD3DDevice_SetSamplerState
(
This
->
wineD3DDevice
,
Stage
,
Stage
,
WINED3DSAMP_MAGFILTER
,
WINED3DSAMP_MAGFILTER
,
State
);
wined3dfilter
);
}
case
D3DTSS_ADDRESS
:
case
D3DTSS_ADDRESS
:
IWineD3DDevice_SetSamplerState
(
This
->
wineD3DDevice
,
IWineD3DDevice_SetSamplerState
(
This
->
wineD3DDevice
,
...
...
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