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
dc3ee8b9
Commit
dc3ee8b9
authored
Jul 12, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: COM cleanup for the ID3D10RenderTargetView iface.
parent
0b78866a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+1
-1
device.c
dlls/d3d10core/device.c
+1
-1
view.c
dlls/d3d10core/view.c
+6
-6
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
dc3ee8b9
...
...
@@ -132,7 +132,7 @@ HRESULT d3d10_depthstencil_view_init(struct d3d10_depthstencil_view *view) DECLS
/* ID3D10RenderTargetView */
struct
d3d10_rendertarget_view
{
const
struct
ID3D10RenderTargetViewVtbl
*
vtbl
;
ID3D10RenderTargetView
ID3D10RenderTargetView_iface
;
LONG
refcount
;
struct
wined3d_rendertarget_view
*
wined3d_view
;
...
...
dlls/d3d10core/device.c
View file @
dc3ee8b9
...
...
@@ -782,7 +782,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateRenderTargetView(ID3D10Devic
}
TRACE
(
"Created rendertarget view %p.
\n
"
,
object
);
*
view
=
(
ID3D10RenderTargetView
*
)
object
;
*
view
=
&
object
->
ID3D10RenderTargetView_iface
;
return
S_OK
;
}
...
...
dlls/d3d10core/view.c
View file @
dc3ee8b9
...
...
@@ -294,7 +294,7 @@ HRESULT d3d10_depthstencil_view_init(struct d3d10_depthstencil_view *view)
static
inline
struct
d3d10_rendertarget_view
*
impl_from_ID3D10RenderTargetView
(
ID3D10RenderTargetView
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_rendertarget_view
,
vtbl
);
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_rendertarget_view
,
ID3D10RenderTargetView_iface
);
}
/* IUnknown methods */
...
...
@@ -322,7 +322,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_rendertarget_view_QueryInterface(ID3D10Re
static
ULONG
STDMETHODCALLTYPE
d3d10_rendertarget_view_AddRef
(
ID3D10RenderTargetView
*
iface
)
{
struct
d3d10_rendertarget_view
*
This
=
(
struct
d3d10_rendertarget_view
*
)
iface
;
struct
d3d10_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
)
;
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
@@ -332,7 +332,7 @@ static ULONG STDMETHODCALLTYPE d3d10_rendertarget_view_AddRef(ID3D10RenderTarget
static
ULONG
STDMETHODCALLTYPE
d3d10_rendertarget_view_Release
(
ID3D10RenderTargetView
*
iface
)
{
struct
d3d10_rendertarget_view
*
This
=
(
struct
d3d10_rendertarget_view
*
)
iface
;
struct
d3d10_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
)
;
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
@@ -384,7 +384,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_rendertarget_view_SetPrivateDataInterface
static
void
STDMETHODCALLTYPE
d3d10_rendertarget_view_GetResource
(
ID3D10RenderTargetView
*
iface
,
ID3D10Resource
**
resource
)
{
struct
d3d10_rendertarget_view
*
This
=
(
struct
d3d10_rendertarget_view
*
)
iface
;
struct
d3d10_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
)
;
struct
wined3d_resource
*
wined3d_resource
;
IUnknown
*
parent
;
HRESULT
hr
;
...
...
@@ -414,7 +414,7 @@ static void STDMETHODCALLTYPE d3d10_rendertarget_view_GetResource(ID3D10RenderTa
static
void
STDMETHODCALLTYPE
d3d10_rendertarget_view_GetDesc
(
ID3D10RenderTargetView
*
iface
,
D3D10_RENDER_TARGET_VIEW_DESC
*
desc
)
{
struct
d3d10_rendertarget_view
*
This
=
(
struct
d3d10_rendertarget_view
*
)
iface
;
struct
d3d10_rendertarget_view
*
This
=
impl_from_ID3D10RenderTargetView
(
iface
)
;
TRACE
(
"iface %p, desc %p
\n
"
,
iface
,
desc
);
...
...
@@ -444,7 +444,7 @@ HRESULT d3d10_rendertarget_view_init(struct d3d10_rendertarget_view *view,
struct
wined3d_resource
*
wined3d_resource
;
HRESULT
hr
;
view
->
v
tbl
=
&
d3d10_rendertarget_view_vtbl
;
view
->
ID3D10RenderTargetView_iface
.
lpV
tbl
=
&
d3d10_rendertarget_view_vtbl
;
view
->
refcount
=
1
;
if
(
!
desc
)
...
...
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