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
99da6642
Commit
99da6642
authored
Aug 23, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use draw_binding in device_clear_render_targets().
parent
317d76ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
device.c
dlls/wined3d/device.c
+8
-3
No files found.
dlls/wined3d/device.c
View file @
99da6642
...
...
@@ -668,7 +668,9 @@ HRESULT device_clear_render_targets(struct wined3d_device *device, UINT rt_count
{
for
(
i
=
0
;
i
<
rt_count
;
++
i
)
{
if
(
fb
->
render_targets
[
i
])
surface_load_location
(
fb
->
render_targets
[
i
],
SFLAG_INDRAWABLE
,
NULL
);
struct
wined3d_surface
*
rt
=
fb
->
render_targets
[
i
];
if
(
rt
)
surface_load_location
(
rt
,
rt
->
draw_binding
,
NULL
);
}
}
...
...
@@ -727,7 +729,7 @@ HRESULT device_clear_render_targets(struct wined3d_device *device, UINT rt_count
if
(
flags
&
WINED3DCLEAR_ZBUFFER
)
{
surface_modify_location
(
fb
->
depth_stencil
,
SFLAG_INDRAWABLE
,
TRUE
);
surface_modify_location
(
fb
->
depth_stencil
,
fb
->
depth_stencil
->
draw_binding
,
TRUE
);
glDepthMask
(
GL_TRUE
);
context_invalidate_state
(
context
,
STATE_RENDER
(
WINED3DRS_ZWRITEENABLE
));
...
...
@@ -740,7 +742,10 @@ HRESULT device_clear_render_targets(struct wined3d_device *device, UINT rt_count
{
for
(
i
=
0
;
i
<
rt_count
;
++
i
)
{
if
(
fb
->
render_targets
[
i
])
surface_modify_location
(
fb
->
render_targets
[
i
],
SFLAG_INDRAWABLE
,
TRUE
);
struct
wined3d_surface
*
rt
=
fb
->
render_targets
[
i
];
if
(
rt
)
surface_modify_location
(
rt
,
rt
->
draw_binding
,
TRUE
);
}
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
...
...
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