Commit fb38bad0 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

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

parent 472fed41
...@@ -3035,14 +3035,14 @@ void gen_ffp_frag_op(const struct wined3d_device *device, const struct wined3d_s ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment