1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

wined3d: Collapse some trivially nested ifs into a single condition.

This commit is contained in:
Zebediah Figura 2024-01-22 17:07:04 -06:00 committed by Alexandre Julliard
parent d219903c61
commit 34232874ad

View file

@ -6477,11 +6477,9 @@ 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 (!(texture->resource.usage & WINED3DUSAGE_LEGACY_CUBEMAP))
{
if (texture->async.color_key_flags & WINED3D_CKEY_SRC_BLT && !texture->resource.format->alpha_size)
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 (aop == WINED3D_TOP_DISABLE)
{
@ -6495,7 +6493,10 @@ void wined3d_ffp_get_fs_settings(const struct wined3d_context *context, const st
aarg2 = WINED3DTA_TEXTURE;
aop = WINED3D_TOP_MODULATE;
}
else aarg1 = WINED3DTA_TEXTURE;
else
{
aarg1 = WINED3DTA_TEXTURE;
}
}
else if (aop == WINED3D_TOP_SELECT_ARG2 && aarg2 != WINED3DTA_TEXTURE)
{
@ -6504,8 +6505,9 @@ void wined3d_ffp_get_fs_settings(const struct wined3d_context *context, const st
aarg1 = WINED3DTA_TEXTURE;
aop = WINED3D_TOP_MODULATE;
}
else aarg2 = WINED3DTA_TEXTURE;
}
else
{
aarg2 = WINED3DTA_TEXTURE;
}
}
}