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
204ffe15
Commit
204ffe15
authored
Sep 01, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Properly handle parentless views in d3d10_device_OMGetRenderTargets().
parent
d276bde0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
device.c
dlls/d3d10core/device.c
+4
-4
No files found.
dlls/d3d10core/device.c
View file @
204ffe15
...
...
@@ -955,13 +955,13 @@ static void STDMETHODCALLTYPE d3d10_device_OMGetRenderTargets(ID3D10Device1 *ifa
for
(
i
=
0
;
i
<
view_count
;
++
i
)
{
if
(
!
(
wined3d_view
=
wined3d_device_get_rendertarget_view
(
device
->
wined3d_device
,
i
)))
if
(
!
(
wined3d_view
=
wined3d_device_get_rendertarget_view
(
device
->
wined3d_device
,
i
))
||
!
(
view_impl
=
wined3d_rendertarget_view_get_parent
(
wined3d_view
)))
{
render_target_views
[
i
]
=
NULL
;
continue
;
}
view_impl
=
wined3d_rendertarget_view_get_parent
(
wined3d_view
);
render_target_views
[
i
]
=
&
view_impl
->
ID3D10RenderTargetView_iface
;
ID3D10RenderTargetView_AddRef
(
render_target_views
[
i
]);
}
...
...
@@ -971,13 +971,13 @@ static void STDMETHODCALLTYPE d3d10_device_OMGetRenderTargets(ID3D10Device1 *ifa
{
struct
d3d10_depthstencil_view
*
view_impl
;
if
(
!
(
wined3d_view
=
wined3d_device_get_depth_stencil_view
(
device
->
wined3d_device
)))
if
(
!
(
wined3d_view
=
wined3d_device_get_depth_stencil_view
(
device
->
wined3d_device
))
||
!
(
view_impl
=
wined3d_rendertarget_view_get_parent
(
wined3d_view
)))
{
*
depth_stencil_view
=
NULL
;
}
else
{
view_impl
=
wined3d_rendertarget_view_get_parent
(
wined3d_view
);
*
depth_stencil_view
=
&
view_impl
->
ID3D10DepthStencilView_iface
;
ID3D10DepthStencilView_AddRef
(
*
depth_stencil_view
);
}
...
...
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