d3dx9: Store effect creation flags in struct d3dx_base_effect.
Signed-off-by: Paul Gofman <gofmanp@gmail.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0a5e85d071
commit
a52a2d1aab
|
@ -154,6 +154,7 @@ struct d3dx9_base_effect
|
||||||
struct d3dx_object *objects;
|
struct d3dx_object *objects;
|
||||||
|
|
||||||
struct d3dx_effect_pool *pool;
|
struct d3dx_effect_pool *pool;
|
||||||
|
DWORD flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ID3DXEffectImpl
|
struct ID3DXEffectImpl
|
||||||
|
@ -169,7 +170,7 @@ struct ID3DXEffectImpl
|
||||||
struct d3dx_technique *active_technique;
|
struct d3dx_technique *active_technique;
|
||||||
struct d3dx_pass *active_pass;
|
struct d3dx_pass *active_pass;
|
||||||
BOOL started;
|
BOOL started;
|
||||||
DWORD flags;
|
DWORD begin_flags;
|
||||||
|
|
||||||
D3DLIGHT9 current_light[8];
|
D3DLIGHT9 current_light[8];
|
||||||
BOOL light_updated[8];
|
BOOL light_updated[8];
|
||||||
|
@ -4019,7 +4020,7 @@ static HRESULT WINAPI ID3DXEffectImpl_Begin(ID3DXEffect *iface, UINT *passes, DW
|
||||||
|
|
||||||
*passes = technique->pass_count;
|
*passes = technique->pass_count;
|
||||||
effect->started = TRUE;
|
effect->started = TRUE;
|
||||||
effect->flags = flags;
|
effect->begin_flags = flags;
|
||||||
|
|
||||||
return D3D_OK;
|
return D3D_OK;
|
||||||
}
|
}
|
||||||
|
@ -4090,7 +4091,7 @@ static HRESULT WINAPI ID3DXEffectImpl_End(ID3DXEffect *iface)
|
||||||
if (!effect->started)
|
if (!effect->started)
|
||||||
return D3D_OK;
|
return D3D_OK;
|
||||||
|
|
||||||
if (effect->flags & D3DXFX_DONOTSAVESTATE)
|
if (effect->begin_flags & D3DXFX_DONOTSAVESTATE)
|
||||||
{
|
{
|
||||||
TRACE("State restoring disabled.\n");
|
TRACE("State restoring disabled.\n");
|
||||||
}
|
}
|
||||||
|
@ -6238,6 +6239,7 @@ static HRESULT d3dx9_base_effect_init(struct d3dx9_base_effect *base,
|
||||||
|
|
||||||
base->effect = effect;
|
base->effect = effect;
|
||||||
base->pool = pool;
|
base->pool = pool;
|
||||||
|
base->flags = eflags;
|
||||||
|
|
||||||
read_dword(&ptr, &tag);
|
read_dword(&ptr, &tag);
|
||||||
TRACE("Tag: %x\n", tag);
|
TRACE("Tag: %x\n", tag);
|
||||||
|
|
Loading…
Reference in New Issue