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
d9000aee
Commit
d9000aee
authored
Apr 23, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Properly retrieve an interface pointer in IDirect3DDevice8Impl_GetStreamSource().
parent
53e9cf8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
device.c
dlls/d3d8/device.c
+3
-1
No files found.
dlls/d3d8/device.c
View file @
d9000aee
...
@@ -2690,6 +2690,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource(IDirect3DDevice8 *ifa
...
@@ -2690,6 +2690,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource(IDirect3DDevice8 *ifa
UINT
StreamNumber
,
IDirect3DVertexBuffer8
**
pStream
,
UINT
*
pStride
)
UINT
StreamNumber
,
IDirect3DVertexBuffer8
**
pStream
,
UINT
*
pStride
)
{
{
IDirect3DDevice8Impl
*
This
=
impl_from_IDirect3DDevice8
(
iface
);
IDirect3DDevice8Impl
*
This
=
impl_from_IDirect3DDevice8
(
iface
);
IDirect3DVertexBuffer8Impl
*
buffer_impl
;
struct
wined3d_buffer
*
retStream
=
NULL
;
struct
wined3d_buffer
*
retStream
=
NULL
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -2705,7 +2706,8 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource(IDirect3DDevice8 *ifa
...
@@ -2705,7 +2706,8 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource(IDirect3DDevice8 *ifa
&
retStream
,
0
/* Offset in bytes */
,
pStride
);
&
retStream
,
0
/* Offset in bytes */
,
pStride
);
if
(
SUCCEEDED
(
hr
)
&&
retStream
)
if
(
SUCCEEDED
(
hr
)
&&
retStream
)
{
{
*
pStream
=
wined3d_buffer_get_parent
(
retStream
);
buffer_impl
=
wined3d_buffer_get_parent
(
retStream
);
*
pStream
=
&
buffer_impl
->
IDirect3DVertexBuffer8_iface
;
IDirect3DVertexBuffer8_AddRef
(
*
pStream
);
IDirect3DVertexBuffer8_AddRef
(
*
pStream
);
wined3d_buffer_decref
(
retStream
);
wined3d_buffer_decref
(
retStream
);
}
}
...
...
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