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
b8e0af67
Commit
b8e0af67
authored
Jul 17, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simplify the render target check in ffp_blitter_clear().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
95e42a8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
surface.c
dlls/wined3d/surface.c
+4
-14
No files found.
dlls/wined3d/surface.c
View file @
b8e0af67
...
...
@@ -2569,7 +2569,6 @@ static void ffp_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_de
const
RECT
*
draw_rect
,
DWORD
flags
,
const
struct
wined3d_color
*
colour
,
float
depth
,
DWORD
stencil
)
{
struct
wined3d_rendertarget_view
*
view
;
struct
wined3d_resource
*
resource
;
struct
wined3d_blitter
*
next
;
unsigned
int
i
;
...
...
@@ -2580,22 +2579,13 @@ static void ffp_blitter_clear(struct wined3d_blitter *blitter, struct wined3d_de
if
(
!
(
view
=
fb
->
render_targets
[
i
]))
continue
;
resource
=
view
->
resource
;
if
(
!
(
flags
&
(
WINED3DCLEAR_ZBUFFER
|
WINED3DCLEAR_STENCIL
))
if
((
!
(
flags
&
(
WINED3DCLEAR_ZBUFFER
|
WINED3DCLEAR_STENCIL
))
&&
ffp_blitter_use_cpu_clear
(
view
))
||
(
!
(
view
->
resource
->
usage
&
WINED3DUSAGE_RENDERTARGET
)
&&
(
wined3d_settings
.
offscreen_rendering_mode
!=
ORM_FBO
||
!
(
view
->
format_flags
&
WINED3DFMT_FLAG_FBO_ATTACHABLE
))))
goto
next
;
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
if
(
!
((
view
->
format_flags
&
WINED3DFMT_FLAG_FBO_ATTACHABLE
)
||
(
resource
->
usage
&
WINED3DUSAGE_RENDERTARGET
)))
goto
next
;
}
else
if
(
!
(
resource
->
usage
&
WINED3DUSAGE_RENDERTARGET
))
{
goto
next
;
}
/* FIXME: We should reject colour fills on formats with fixups,
* but this would break P8 colour fills for example. */
}
...
...
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