mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
d3dx9: Implement ID3DXBaseEffect::GetTexture().
This commit is contained in:
parent
ca5b8e11cc
commit
041a651431
@ -1569,10 +1569,24 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_SetTexture(ID3DXBaseEffect *iface, D3D
|
||||
static HRESULT WINAPI ID3DXBaseEffectImpl_GetTexture(ID3DXBaseEffect *iface, D3DXHANDLE parameter, LPDIRECT3DBASETEXTURE9 *texture)
|
||||
{
|
||||
struct ID3DXBaseEffectImpl *This = impl_from_ID3DXBaseEffect(iface);
|
||||
struct d3dx_parameter *param = is_valid_parameter(This, parameter);
|
||||
|
||||
FIXME("iface %p, parameter %p, texture %p stub\n", This, parameter, texture);
|
||||
TRACE("iface %p, parameter %p, texture %p\n", This, parameter, texture);
|
||||
|
||||
return E_NOTIMPL;
|
||||
if (texture && param && !param->element_count &&
|
||||
(param->type == D3DXPT_TEXTURE || param->type == D3DXPT_TEXTURE1D
|
||||
|| param->type == D3DXPT_TEXTURE2D || param->type == D3DXPT_TEXTURE3D
|
||||
|| param->type == D3DXPT_TEXTURECUBE))
|
||||
{
|
||||
*texture = *(LPDIRECT3DBASETEXTURE9 *)param->data;
|
||||
if (*texture) IDirect3DBaseTexture9_AddRef(*texture);
|
||||
TRACE("Returning %p\n", *texture);
|
||||
return D3D_OK;
|
||||
}
|
||||
|
||||
WARN("Invalid argument specified\n");
|
||||
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI ID3DXBaseEffectImpl_GetPixelShader(ID3DXBaseEffect *iface, D3DXHANDLE parameter, LPDIRECT3DPIXELSHADER9 *pshader)
|
||||
|
Loading…
Reference in New Issue
Block a user