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
11a2231c
Commit
11a2231c
authored
Apr 24, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Properly retrieve an interface pointer in IDirect3DDevice9Impl_GetSwapChain().
parent
6b9cfd26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
device.c
dlls/d3d9/device.c
+3
-1
No files found.
dlls/d3d9/device.c
View file @
11a2231c
...
...
@@ -463,6 +463,7 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_GetSwapChain(IDirec
{
IDirect3DDevice9Impl
*
This
=
impl_from_IDirect3DDevice9Ex
(
iface
);
struct
wined3d_swapchain
*
wined3d_swapchain
=
NULL
;
IDirect3DSwapChain9Impl
*
swapchain_impl
;
HRESULT
hr
;
TRACE
(
"iface %p, swapchain_idx %u, swapchain %p.
\n
"
,
iface
,
swapchain_idx
,
swapchain
);
...
...
@@ -471,7 +472,8 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_GetSwapChain(IDirec
hr
=
wined3d_device_get_swapchain
(
This
->
wined3d_device
,
swapchain_idx
,
&
wined3d_swapchain
);
if
(
SUCCEEDED
(
hr
)
&&
wined3d_swapchain
)
{
*
swapchain
=
wined3d_swapchain_get_parent
(
wined3d_swapchain
);
swapchain_impl
=
wined3d_swapchain_get_parent
(
wined3d_swapchain
);
*
swapchain
=
&
swapchain_impl
->
IDirect3DSwapChain9_iface
;
IDirect3DSwapChain9_AddRef
(
*
swapchain
);
wined3d_swapchain_decref
(
wined3d_swapchain
);
}
...
...
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