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
3808a6f3
Commit
3808a6f3
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 ID3D10InputLayout iface.
parent
6c866e06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+1
-1
device.c
dlls/d3d10core/device.c
+1
-1
inputlayout.c
dlls/d3d10core/inputlayout.c
+4
-4
No files found.
dlls/d3d10core/d3d10core_private.h
View file @
3808a6f3
...
...
@@ -155,7 +155,7 @@ HRESULT d3d10_shader_resource_view_init(struct d3d10_shader_resource_view *view)
/* ID3D10InputLayout */
struct
d3d10_input_layout
{
const
struct
ID3D10InputLayoutVtbl
*
vtbl
;
ID3D10InputLayout
ID3D10InputLayout_iface
;
LONG
refcount
;
struct
wined3d_vertex_declaration
*
wined3d_decl
;
...
...
dlls/d3d10core/device.c
View file @
3808a6f3
...
...
@@ -848,7 +848,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateInputLayout(ID3D10Device *if
}
TRACE
(
"Created input layout %p.
\n
"
,
object
);
*
input_layout
=
(
ID3D10InputLayout
*
)
object
;
*
input_layout
=
&
object
->
ID3D10InputLayout_iface
;
return
S_OK
;
}
...
...
dlls/d3d10core/inputlayout.c
View file @
3808a6f3
...
...
@@ -103,7 +103,7 @@ static HRESULT d3d10_input_layout_to_wined3d_declaration(const D3D10_INPUT_ELEME
static
inline
struct
d3d10_input_layout
*
impl_from_ID3D10InputLayout
(
ID3D10InputLayout
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_input_layout
,
vtbl
);
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_input_layout
,
ID3D10InputLayout_iface
);
}
/* IUnknown methods */
...
...
@@ -130,7 +130,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_input_layout_QueryInterface(ID3D10InputLa
static
ULONG
STDMETHODCALLTYPE
d3d10_input_layout_AddRef
(
ID3D10InputLayout
*
iface
)
{
struct
d3d10_input_layout
*
This
=
(
struct
d3d10_input_layout
*
)
iface
;
struct
d3d10_input_layout
*
This
=
impl_from_ID3D10InputLayout
(
iface
)
;
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
@@ -145,7 +145,7 @@ static ULONG STDMETHODCALLTYPE d3d10_input_layout_AddRef(ID3D10InputLayout *ifac
static
ULONG
STDMETHODCALLTYPE
d3d10_input_layout_Release
(
ID3D10InputLayout
*
iface
)
{
struct
d3d10_input_layout
*
This
=
(
struct
d3d10_input_layout
*
)
iface
;
struct
d3d10_input_layout
*
This
=
impl_from_ID3D10InputLayout
(
iface
)
;
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
...
...
@@ -222,7 +222,7 @@ HRESULT d3d10_input_layout_init(struct d3d10_input_layout *layout, struct d3d10_
UINT
wined3d_element_count
;
HRESULT
hr
;
layout
->
v
tbl
=
&
d3d10_input_layout_vtbl
;
layout
->
ID3D10InputLayout_iface
.
lpV
tbl
=
&
d3d10_input_layout_vtbl
;
layout
->
refcount
=
1
;
hr
=
d3d10_input_layout_to_wined3d_declaration
(
element_descs
,
element_count
,
...
...
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