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
a1595691
Commit
a1595691
authored
Apr 10, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: COM cleanup for the IDirect3D9Ex iface.
parent
c52c15ef
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
40 deletions
+64
-40
d3d9_main.c
dlls/d3d9/d3d9_main.c
+2
-2
d3d9_private.h
dlls/d3d9/d3d9_private.h
+1
-1
directx.c
dlls/d3d9/directx.c
+61
-37
No files found.
dlls/d3d9/d3d9_main.c
View file @
a1595691
...
...
@@ -36,7 +36,7 @@ void WINAPI DebugSetMute(void) {
IDirect3D9
*
WINAPI
DECLSPEC_HOTPATCH
Direct3DCreate9
(
UINT
SDKVersion
)
{
IDirect3D9Impl
*
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3D9Impl
));
object
->
lpVtbl
=
&
Direct3D9_Vtbl
;
object
->
IDirect3D9Ex_iface
.
lpVtbl
=
&
Direct3D9_Vtbl
;
object
->
ref
=
1
;
wined3d_mutex_lock
();
...
...
@@ -66,7 +66,7 @@ HRESULT WINAPI DECLSPEC_HOTPATCH Direct3DCreate9Ex(UINT SDKVersion, IDirect3D9Ex
object
=
(
IDirect3D9Impl
*
)
ret
;
object
->
extended
=
TRUE
;
/* Enables QI for extended interfaces */
*
direct3d9ex
=
(
IDirect3D9Ex
*
)
object
;
*
direct3d9ex
=
&
object
->
IDirect3D9Ex_iface
;
return
D3D_OK
;
}
...
...
dlls/d3d9/d3d9_private.h
View file @
a1595691
...
...
@@ -146,7 +146,7 @@ extern const IDirect3D9ExVtbl Direct3D9_Vtbl DECLSPEC_HIDDEN;
typedef
struct
IDirect3D9Impl
{
/* IUnknown fields */
const
IDirect3D9ExVtbl
*
lpVtbl
;
IDirect3D9Ex
IDirect3D9Ex_iface
;
LONG
ref
;
struct
wined3d
*
WineD3D
;
...
...
dlls/d3d9/directx.c
View file @
a1595691
This diff is collapsed.
Click to expand it.
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