wined3d: Improve projection TEXTURETRANSFORMFLAGS handling in the ARB fragment ffp implementation.

This commit is contained in:
Matteo Bruni 2011-12-27 17:28:58 +01:00 committed by Alexandre Julliard
parent 472fed41dd
commit fb38bad0c4

@ -3035,14 +3035,14 @@ void gen_ffp_frag_op(const struct wined3d_device *device, const struct wined3d_s
{ {
ttff = state->texture_states[i][WINED3DTSS_TEXTURETRANSFORMFLAGS]; ttff = state->texture_states[i][WINED3DTSS_TEXTURETRANSFORMFLAGS];
if (ttff == (WINED3DTTFF_PROJECTED | WINED3DTTFF_COUNT3)) if (ttff == (WINED3DTTFF_PROJECTED | WINED3DTTFF_COUNT3))
{
settings->op[i].projected = proj_count3; settings->op[i].projected = proj_count3;
} else if(ttff == (WINED3DTTFF_PROJECTED | WINED3DTTFF_COUNT4)) { else if (ttff & WINED3DTTFF_PROJECTED)
settings->op[i].projected = proj_count4; settings->op[i].projected = proj_count4;
} else { else
settings->op[i].projected = proj_none; settings->op[i].projected = proj_none;
} }
} else { else
{
settings->op[i].projected = proj_none; settings->op[i].projected = proj_none;
} }