Implement IDirect3DViewport2_DeleteLight.
This commit is contained in:
parent
9747c15a15
commit
c3fa405ab7
|
@ -311,10 +311,20 @@ HRESULT WINAPI IDirect3DViewport2Impl_DeleteLight(LPDIRECT3DVIEWPORT2 iface,
|
|||
LPDIRECT3DLIGHT lpLight)
|
||||
{
|
||||
ICOM_THIS(IDirect3DViewport2Impl,iface);
|
||||
FIXME("(%p)->(%p): stub\n", This, lpLight);
|
||||
IDirect3DLightImpl** currentlplpLight;
|
||||
TRACE("(%p)->(%p): stub\n", This, lpLight);
|
||||
|
||||
currentlplpLight = &(This->lights);
|
||||
while(*currentlplpLight) {
|
||||
if (*currentlplpLight == (IDirect3DLightImpl*)lpLight) {
|
||||
*currentlplpLight = (*currentlplpLight)->next;
|
||||
return DD_OK;
|
||||
}
|
||||
currentlplpLight = &((*currentlplpLight)->next);
|
||||
}
|
||||
|
||||
return DDERR_INVALIDOBJECT;
|
||||
}
|
||||
|
||||
HRESULT WINAPI IDirect3DViewport2Impl_NextLight(LPDIRECT3DVIEWPORT2 iface,
|
||||
LPDIRECT3DLIGHT lpLight,
|
||||
|
|
Loading…
Reference in New Issue