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
815470e6
Commit
815470e6
authored
Jun 02, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: COM cleanup for the ID3D10DepthStencilState iface.
parent
e6b29add
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+1
-1
device.c
dlls/d3d10core/device.c
+1
-1
state.c
dlls/d3d10core/state.c
+8
-3
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
815470e6
...
...
@@ -218,7 +218,7 @@ HRESULT d3d10_blend_state_init(struct d3d10_blend_state *state) DECLSPEC_HIDDEN;
/* ID3D10DepthStencilState */
struct
d3d10_depthstencil_state
{
const
struct
ID3D10DepthStencilStateVtbl
*
vtbl
;
ID3D10DepthStencilState
ID3D10DepthStencilState_iface
;
LONG
refcount
;
};
...
...
dlls/d3d10core/device.c
View file @
815470e6
...
...
@@ -997,7 +997,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateDepthStencilState(ID3D10Devi
}
TRACE
(
"Created depthstencil state %p.
\n
"
,
object
);
*
depth_stencil_state
=
(
ID3D10DepthStencilState
*
)
object
;
*
depth_stencil_state
=
&
object
->
ID3D10DepthStencilState_iface
;
return
S_OK
;
}
...
...
dlls/d3d10core/state.c
View file @
815470e6
...
...
@@ -140,6 +140,11 @@ HRESULT d3d10_blend_state_init(struct d3d10_blend_state *state)
return
S_OK
;
}
static
inline
struct
d3d10_depthstencil_state
*
impl_from_ID3D10DepthStencilState
(
ID3D10DepthStencilState
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_depthstencil_state
,
ID3D10DepthStencilState_iface
);
}
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
d3d10_depthstencil_state_QueryInterface
(
ID3D10DepthStencilState
*
iface
,
...
...
@@ -164,7 +169,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_depthstencil_state_QueryInterface(ID3D10D
static
ULONG
STDMETHODCALLTYPE
d3d10_depthstencil_state_AddRef
(
ID3D10DepthStencilState
*
iface
)
{
struct
d3d10_depthstencil_state
*
This
=
(
struct
d3d10_depthstencil_state
*
)
iface
;
struct
d3d10_depthstencil_state
*
This
=
impl_from_ID3D10DepthStencilState
(
iface
)
;
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
This
,
refcount
);
...
...
@@ -174,7 +179,7 @@ static ULONG STDMETHODCALLTYPE d3d10_depthstencil_state_AddRef(ID3D10DepthStenci
static
ULONG
STDMETHODCALLTYPE
d3d10_depthstencil_state_Release
(
ID3D10DepthStencilState
*
iface
)
{
struct
d3d10_depthstencil_state
*
This
=
(
struct
d3d10_depthstencil_state
*
)
iface
;
struct
d3d10_depthstencil_state
*
This
=
impl_from_ID3D10DepthStencilState
(
iface
)
;
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
This
,
refcount
);
...
...
@@ -245,7 +250,7 @@ static const struct ID3D10DepthStencilStateVtbl d3d10_depthstencil_state_vtbl =
HRESULT
d3d10_depthstencil_state_init
(
struct
d3d10_depthstencil_state
*
state
)
{
state
->
v
tbl
=
&
d3d10_depthstencil_state_vtbl
;
state
->
ID3D10DepthStencilState_iface
.
lpV
tbl
=
&
d3d10_depthstencil_state_vtbl
;
state
->
refcount
=
1
;
return
S_OK
;
...
...
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