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
34232874
Commit
34232874
authored
Jan 22, 2024
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Collapse some trivially nested ifs into a single condition.
parent
d219903c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
26 deletions
+28
-26
utils.c
dlls/wined3d/utils.c
+28
-26
No files found.
dlls/wined3d/utils.c
View file @
34232874
...
...
@@ -6477,35 +6477,37 @@ void wined3d_ffp_get_fs_settings(const struct wined3d_context *context, const st
aarg0
=
(
args
[
aop
]
&
ARG0
)
?
state
->
texture_states
[
i
][
WINED3D_TSS_ALPHA_ARG0
]
:
ARG_UNUSED
;
}
if
(
!
i
&&
texture
&&
state
->
render_states
[
WINED3D_RS_COLORKEYENABLE
])
if
(
!
i
&&
state
->
render_states
[
WINED3D_RS_COLORKEYENABLE
]
&&
texture
&&
!
(
texture
->
resource
.
usage
&
WINED3DUSAGE_LEGACY_CUBEMAP
)
&&
(
texture
->
async
.
color_key_flags
&
WINED3D_CKEY_SRC_BLT
)
&&
!
texture
->
resource
.
format
->
alpha_size
)
{
if
(
!
(
texture
->
resource
.
usage
&
WINED3DUSAGE_LEGACY_CUBEMAP
)
)
if
(
aop
==
WINED3D_TOP_DISABLE
)
{
if
(
texture
->
async
.
color_key_flags
&
WINED3D_CKEY_SRC_BLT
&&
!
texture
->
resource
.
format
->
alpha_size
)
aarg1
=
WINED3DTA_TEXTURE
;
aop
=
WINED3D_TOP_SELECT_ARG1
;
}
else
if
(
aop
==
WINED3D_TOP_SELECT_ARG1
&&
aarg1
!=
WINED3DTA_TEXTURE
)
{
if
(
state
->
blend_state
&&
state
->
blend_state
->
desc
.
rt
[
0
].
enable
)
{
if
(
aop
==
WINED3D_TOP_DISABLE
)
{
aarg1
=
WINED3DTA_TEXTURE
;
aop
=
WINED3D_TOP_SELECT_ARG1
;
}
else
if
(
aop
==
WINED3D_TOP_SELECT_ARG1
&&
aarg1
!=
WINED3DTA_TEXTURE
)
{
if
(
state
->
blend_state
&&
state
->
blend_state
->
desc
.
rt
[
0
].
enable
)
{
aarg2
=
WINED3DTA_TEXTURE
;
aop
=
WINED3D_TOP_MODULATE
;
}
else
aarg1
=
WINED3DTA_TEXTURE
;
}
else
if
(
aop
==
WINED3D_TOP_SELECT_ARG2
&&
aarg2
!=
WINED3DTA_TEXTURE
)
{
if
(
state
->
blend_state
&&
state
->
blend_state
->
desc
.
rt
[
0
].
enable
)
{
aarg1
=
WINED3DTA_TEXTURE
;
aop
=
WINED3D_TOP_MODULATE
;
}
else
aarg2
=
WINED3DTA_TEXTURE
;
}
aarg2
=
WINED3DTA_TEXTURE
;
aop
=
WINED3D_TOP_MODULATE
;
}
else
{
aarg1
=
WINED3DTA_TEXTURE
;
}
}
else
if
(
aop
==
WINED3D_TOP_SELECT_ARG2
&&
aarg2
!=
WINED3DTA_TEXTURE
)
{
if
(
state
->
blend_state
&&
state
->
blend_state
->
desc
.
rt
[
0
].
enable
)
{
aarg1
=
WINED3DTA_TEXTURE
;
aop
=
WINED3D_TOP_MODULATE
;
}
else
{
aarg2
=
WINED3DTA_TEXTURE
;
}
}
}
...
...
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