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
a3ad73f9
Commit
a3ad73f9
authored
Mar 03, 2020
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Avoid a dead assignment in d3d9_device_SetStreamSource() (Coverity).
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7622d97f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
device.c
dlls/d3d9/device.c
+5
-4
No files found.
dlls/d3d9/device.c
View file @
a3ad73f9
...
...
@@ -3688,17 +3688,18 @@ static HRESULT WINAPI d3d9_device_SetStreamSource(IDirect3DDevice9Ex *iface,
const
struct
wined3d_stream_state
*
stream
;
state
=
wined3d_stateblock_get_state
(
device
->
state
);
stream
=
&
state
->
streams
[
stream_idx
];
wined3d_buffer
=
stream
->
buffer
;
offset
=
stream
->
offset
;
stride
=
stream
->
stride
;
}
if
(
!
buffer_impl
)
wined3d_buffer
=
NULL
;
}
else
if
(
buffer_impl
->
draw_buffer
)
{
wined3d_buffer
=
buffer_impl
->
draw_buffer
;
}
else
{
wined3d_buffer
=
buffer_impl
->
wined3d_buffer
;
}
hr
=
wined3d_stateblock_set_stream_source
(
device
->
update_state
,
stream_idx
,
wined3d_buffer
,
offset
,
stride
);
if
(
SUCCEEDED
(
hr
)
&&
!
device
->
recording
)
...
...
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