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
b5a91d12
Commit
b5a91d12
authored
Sep 18, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Also store the depth/stencil state in the stateblock.
parent
e2b7354a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
stateblock.c
dlls/d3d10/stateblock.c
+10
-0
No files found.
dlls/d3d10/stateblock.c
View file @
b5a91d12
...
...
@@ -55,6 +55,7 @@ struct d3d10_stateblock
ID3D10RenderTargetView
*
rtvs
[
D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT
];
ID3D10DepthStencilView
*
dsv
;
ID3D10DepthStencilState
*
dss
;
UINT
stencil_ref
;
ID3D10BlendState
*
bs
;
float
blend_factor
[
4
];
UINT
sample_mask
;
...
...
@@ -198,6 +199,11 @@ static void stateblock_cleanup(struct d3d10_stateblock *stateblock)
ID3D10DepthStencilView_Release
(
stateblock
->
dsv
);
stateblock
->
dsv
=
NULL
;
}
if
(
stateblock
->
dss
)
{
ID3D10DepthStencilState_Release
(
stateblock
->
dss
);
stateblock
->
dss
=
NULL
;
}
if
(
stateblock
->
bs
)
{
ID3D10BlendState_Release
(
stateblock
->
bs
);
...
...
@@ -355,6 +361,8 @@ static HRESULT STDMETHODCALLTYPE d3d10_stateblock_Capture(ID3D10StateBlock *ifac
if
(
stateblock
->
mask
.
OMRenderTargets
)
ID3D10Device_OMGetRenderTargets
(
stateblock
->
device
,
D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT
,
stateblock
->
rtvs
,
&
stateblock
->
dsv
);
if
(
stateblock
->
mask
.
OMDepthStencilState
)
ID3D10Device_OMGetDepthStencilState
(
stateblock
->
device
,
&
stateblock
->
dss
,
&
stateblock
->
stencil_ref
);
if
(
stateblock
->
mask
.
OMBlendState
)
ID3D10Device_OMGetBlendState
(
stateblock
->
device
,
&
stateblock
->
bs
,
stateblock
->
blend_factor
,
&
stateblock
->
sample_mask
);
...
...
@@ -454,6 +462,8 @@ static HRESULT STDMETHODCALLTYPE d3d10_stateblock_Apply(ID3D10StateBlock *iface)
if
(
stateblock
->
mask
.
OMRenderTargets
)
ID3D10Device_OMSetRenderTargets
(
stateblock
->
device
,
D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT
,
stateblock
->
rtvs
,
stateblock
->
dsv
);
if
(
stateblock
->
mask
.
OMDepthStencilState
)
ID3D10Device_OMSetDepthStencilState
(
stateblock
->
device
,
stateblock
->
dss
,
stateblock
->
stencil_ref
);
if
(
stateblock
->
mask
.
OMBlendState
)
ID3D10Device_OMSetBlendState
(
stateblock
->
device
,
stateblock
->
bs
,
stateblock
->
blend_factor
,
stateblock
->
sample_mask
);
...
...
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