d3dx9: Avoid using This in d3dx_effect_Clone().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ef974e5985
commit
c56906599c
|
@ -4087,17 +4087,17 @@ static HRESULT WINAPI d3dx_effect_DeleteParameterBlock(ID3DXEffect *iface, D3DXH
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static HRESULT WINAPI d3dx_effect_CloneEffect(ID3DXEffect *iface, struct IDirect3DDevice9 *device,
|
static HRESULT WINAPI d3dx_effect_CloneEffect(ID3DXEffect *iface, IDirect3DDevice9 *device,
|
||||||
struct ID3DXEffect **effect)
|
ID3DXEffect **new_effect)
|
||||||
{
|
{
|
||||||
struct d3dx_effect *This = impl_from_ID3DXEffect(iface);
|
struct d3dx_effect *effect = impl_from_ID3DXEffect(iface);
|
||||||
|
|
||||||
FIXME("(%p)->(%p, %p): stub\n", This, device, effect);
|
FIXME("iface %p, device %p, new_effect %p stub.\n", effect, device, new_effect);
|
||||||
|
|
||||||
if (!effect)
|
if (!new_effect)
|
||||||
return D3DERR_INVALIDCALL;
|
return D3DERR_INVALIDCALL;
|
||||||
|
|
||||||
if (This->base_effect.flags & D3DXFX_NOT_CLONEABLE)
|
if (effect->base_effect.flags & D3DXFX_NOT_CLONEABLE)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (!device)
|
if (!device)
|
||||||
|
|
Loading…
Reference in New Issue