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
c69bb924
Commit
c69bb924
authored
Jun 03, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: COM cleanup for the ID3D10ShaderReflection iface.
parent
9635f8b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
d3d10_main.c
dlls/d3d10/d3d10_main.c
+2
-2
d3d10_private.h
dlls/d3d10/d3d10_private.h
+1
-1
shader.c
dlls/d3d10/shader.c
+7
-2
No files found.
dlls/d3d10/d3d10_main.c
View file @
c69bb924
...
...
@@ -276,10 +276,10 @@ HRESULT WINAPI D3D10ReflectShader(const void *data, SIZE_T data_size, ID3D10Shad
return
E_OUTOFMEMORY
;
}
object
->
v
tbl
=
&
d3d10_shader_reflection_vtbl
;
object
->
ID3D10ShaderReflection_iface
.
lpV
tbl
=
&
d3d10_shader_reflection_vtbl
;
object
->
refcount
=
1
;
*
reflector
=
(
ID3D10ShaderReflection
*
)
object
;
*
reflector
=
&
object
->
ID3D10ShaderReflection_iface
;
TRACE
(
"Created ID3D10ShaderReflection %p
\n
"
,
object
);
...
...
dlls/d3d10/d3d10_private.h
View file @
c69bb924
...
...
@@ -217,7 +217,7 @@ struct d3d10_effect
extern
const
struct
ID3D10ShaderReflectionVtbl
d3d10_shader_reflection_vtbl
DECLSPEC_HIDDEN
;
struct
d3d10_shader_reflection
{
const
struct
ID3D10ShaderReflectionVtbl
*
vtbl
;
ID3D10ShaderReflection
ID3D10ShaderReflection_iface
;
LONG
refcount
;
};
...
...
dlls/d3d10/shader.c
View file @
c69bb924
...
...
@@ -27,6 +27,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
/* IUnknown methods */
static
inline
struct
d3d10_shader_reflection
*
impl_from_ID3D10ShaderReflection
(
ID3D10ShaderReflection
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_shader_reflection
,
ID3D10ShaderReflection_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
d3d10_shader_reflection_QueryInterface
(
ID3D10ShaderReflection
*
iface
,
REFIID
riid
,
void
**
object
)
{
TRACE
(
"iface %p, riid %s, object %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
object
);
...
...
@@ -47,7 +52,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_shader_reflection_QueryInterface(ID3D10Sh
static
ULONG
STDMETHODCALLTYPE
d3d10_shader_reflection_AddRef
(
ID3D10ShaderReflection
*
iface
)
{
struct
d3d10_shader_reflection
*
This
=
(
struct
d3d10_shader_reflection
*
)
iface
;
struct
d3d10_shader_reflection
*
This
=
impl_from_ID3D10ShaderReflection
(
iface
)
;
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
@@ -57,7 +62,7 @@ static ULONG STDMETHODCALLTYPE d3d10_shader_reflection_AddRef(ID3D10ShaderReflec
static
ULONG
STDMETHODCALLTYPE
d3d10_shader_reflection_Release
(
ID3D10ShaderReflection
*
iface
)
{
struct
d3d10_shader_reflection
*
This
=
(
struct
d3d10_shader_reflection
*
)
iface
;
struct
d3d10_shader_reflection
*
This
=
impl_from_ID3D10ShaderReflection
(
iface
)
;
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
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