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
3d14118f
Commit
3d14118f
authored
Jan 10, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Get some texture stage states from their equivalent sampler states.
parent
d4b63bbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
4 deletions
+42
-4
device.c
dlls/ddraw/device.c
+42
-4
No files found.
dlls/ddraw/device.c
View file @
3d14118f
...
...
@@ -3975,10 +3975,48 @@ IDirect3DDeviceImpl_7_GetTextureStageState(IDirect3DDevice7 *iface,
if
(
!
State
)
return
DDERR_INVALIDPARAMS
;
return
IWineD3DDevice_GetTextureStageState
(
This
->
wineD3DDevice
,
Stage
,
TexStageStateType
,
State
);
switch
(
TexStageStateType
)
{
/* Mipfilter is a sampler state with different values */
case
D3DTSS_MIPFILTER
:
{
HRESULT
hr
;
WINED3DTEXTUREFILTERTYPE
value
;
hr
=
IWineD3DDevice_GetSamplerState
(
This
->
wineD3DDevice
,
Stage
,
WINED3DSAMP_MIPFILTER
,
&
value
);
switch
(
value
)
{
case
WINED3DTEXF_NONE
:
*
State
=
D3DTFP_NONE
;
break
;
case
WINED3DTEXF_POINT
:
*
State
=
D3DTFP_POINT
;
break
;
case
WINED3DTEXF_LINEAR
:
*
State
=
D3DTFP_LINEAR
;
break
;
default:
ERR
(
"Unexpected mipfilter value %d
\n
"
,
value
);
*
State
=
D3DTFP_NONE
;
}
return
hr
;
}
/* Minfilter is a sampler state too, equal values */
case
D3DTSS_MINFILTER
:
return
IWineD3DDevice_GetSamplerState
(
This
->
wineD3DDevice
,
Stage
,
WINED3DSAMP_MINFILTER
,
State
);
/* Same for MAGFILTER */
case
D3DTSS_MAGFILTER
:
return
IWineD3DDevice_GetSamplerState
(
This
->
wineD3DDevice
,
Stage
,
WINED3DSAMP_MAGFILTER
,
State
);
default:
return
IWineD3DDevice_GetTextureStageState
(
This
->
wineD3DDevice
,
Stage
,
TexStageStateType
,
State
);
}
}
static
HRESULT
WINAPI
...
...
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