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
1ac6cfca
Commit
1ac6cfca
authored
Feb 02, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_rendertarget_view_create() in wined3d_device_reset().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f1898abd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
device.c
dlls/wined3d/device.c
+9
-3
No files found.
dlls/wined3d/device.c
View file @
1ac6cfca
...
...
@@ -4606,6 +4606,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
const
struct
wined3d_swapchain_desc
*
swapchain_desc
,
const
struct
wined3d_display_mode
*
mode
,
wined3d_device_reset_cb
callback
,
BOOL
reset_state
)
{
struct
wined3d_rendertarget_view_desc
view_desc
;
struct
wined3d_resource
*
resource
,
*
cursor
;
struct
wined3d_swapchain
*
swapchain
;
struct
wined3d_display_mode
m
;
...
...
@@ -4798,7 +4799,6 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
{
struct
wined3d_resource_desc
texture_desc
;
struct
wined3d_texture
*
texture
;
struct
wined3d_rendertarget_view_desc
view_desc
;
TRACE
(
"Creating the depth stencil buffer
\n
"
);
...
...
@@ -4841,13 +4841,19 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
wined3d_rendertarget_view_decref
(
device
->
back_buffer_view
);
device
->
back_buffer_view
=
NULL
;
}
if
(
swapchain
->
desc
.
backbuffer_count
&&
FAILED
(
hr
=
wined3d_rendertarget_view_create_from_surface
(
surface_from_resource
(
wined3d_texture_get_sub_resource
(
swapchain
->
back_buffers
[
0
],
0
)),
if
(
swapchain
->
desc
.
backbuffer_count
)
{
view_desc
.
format_id
=
swapchain_desc
->
backbuffer_format
;
view_desc
.
u
.
texture
.
level_idx
=
0
;
view_desc
.
u
.
texture
.
layer_idx
=
0
;
view_desc
.
u
.
texture
.
layer_count
=
1
;
if
(
FAILED
(
hr
=
wined3d_rendertarget_view_create
(
&
view_desc
,
&
swapchain
->
back_buffers
[
0
]
->
resource
,
NULL
,
&
wined3d_null_parent_ops
,
&
device
->
back_buffer_view
)))
{
ERR
(
"Failed to create rendertarget view, hr %#x.
\n
"
,
hr
);
return
hr
;
}
}
wine_rb_clear
(
&
device
->
samplers
,
device_free_sampler
,
NULL
);
...
...
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