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
36de21b3
Commit
36de21b3
authored
Jun 01, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: COM cleanup for the ID3D10ShaderResourceView iface.
parent
7aff686e
Show 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
view.c
dlls/d3d10core/view.c
+8
-3
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
36de21b3
...
...
@@ -145,7 +145,7 @@ HRESULT d3d10_rendertarget_view_init(struct d3d10_rendertarget_view *view,
/* ID3D10ShaderResourceView */
struct
d3d10_shader_resource_view
{
const
struct
ID3D10ShaderResourceViewVtbl
*
vtbl
;
ID3D10ShaderResourceView
ID3D10ShaderResourceView_iface
;
LONG
refcount
;
};
...
...
dlls/d3d10core/device.c
View file @
36de21b3
...
...
@@ -742,7 +742,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateShaderResourceView(ID3D10Dev
}
TRACE
(
"Created shader resource view %p.
\n
"
,
object
);
*
view
=
(
ID3D10ShaderResourceView
*
)
object
;
*
view
=
&
object
->
ID3D10ShaderResourceView_iface
;
return
S_OK
;
}
...
...
dlls/d3d10core/view.c
View file @
36de21b3
...
...
@@ -468,6 +468,11 @@ HRESULT d3d10_rendertarget_view_init(struct d3d10_rendertarget_view *view,
return
S_OK
;
}
static
inline
struct
d3d10_shader_resource_view
*
impl_from_ID3D10ShaderResourceView
(
ID3D10ShaderResourceView
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_shader_resource_view
,
ID3D10ShaderResourceView_iface
);
}
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
d3d10_shader_resource_view_QueryInterface
(
ID3D10ShaderResourceView
*
iface
,
...
...
@@ -493,7 +498,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_shader_resource_view_QueryInterface(ID3D1
static
ULONG
STDMETHODCALLTYPE
d3d10_shader_resource_view_AddRef
(
ID3D10ShaderResourceView
*
iface
)
{
struct
d3d10_shader_resource_view
*
This
=
(
struct
d3d10_shader_resource_view
*
)
iface
;
struct
d3d10_shader_resource_view
*
This
=
impl_from_ID3D10ShaderResourceView
(
iface
)
;
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
This
,
refcount
);
...
...
@@ -503,7 +508,7 @@ static ULONG STDMETHODCALLTYPE d3d10_shader_resource_view_AddRef(ID3D10ShaderRes
static
ULONG
STDMETHODCALLTYPE
d3d10_shader_resource_view_Release
(
ID3D10ShaderResourceView
*
iface
)
{
struct
d3d10_shader_resource_view
*
This
=
(
struct
d3d10_shader_resource_view
*
)
iface
;
struct
d3d10_shader_resource_view
*
This
=
impl_from_ID3D10ShaderResourceView
(
iface
)
;
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
This
,
refcount
);
...
...
@@ -585,7 +590,7 @@ static const struct ID3D10ShaderResourceViewVtbl d3d10_shader_resource_view_vtbl
HRESULT
d3d10_shader_resource_view_init
(
struct
d3d10_shader_resource_view
*
view
)
{
view
->
v
tbl
=
&
d3d10_shader_resource_view_vtbl
;
view
->
ID3D10ShaderResourceView_iface
.
lpV
tbl
=
&
d3d10_shader_resource_view_vtbl
;
view
->
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