From 18e48762457396d50fdceeb919cb37ced350a2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rico=20Sch=C3=BCller?= Date: Fri, 6 May 2011 11:44:58 +0200 Subject: [PATCH] d3dx9: Implement ID3DXBaseEffect::GetDesc() partially. --- dlls/d3dx9_36/effect.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c index 5732dee1e10..38755175f02 100644 --- a/dlls/d3dx9_36/effect.c +++ b/dlls/d3dx9_36/effect.c @@ -665,9 +665,21 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetDesc(ID3DXBaseEffect *iface, D3DXEF { struct ID3DXBaseEffectImpl *This = impl_from_ID3DXBaseEffect(iface); - FIXME("iface %p, desc %p stub\n", This, desc); + FIXME("iface %p, desc %p partial stub\n", This, desc); - return E_NOTIMPL; + if (!desc) + { + WARN("Invalid argument specified.\n"); + return D3DERR_INVALIDCALL; + } + + /* Todo: add creator and function count */ + desc->Creator = NULL; + desc->Functions = 0; + desc->Parameters = This->parameter_count; + desc->Techniques = This->technique_count; + + return D3D_OK; } static HRESULT WINAPI ID3DXBaseEffectImpl_GetParameterDesc(ID3DXBaseEffect *iface, D3DXHANDLE parameter, D3DXPARAMETER_DESC *desc)