d3d: Remove AddRef from IWineD3DDevice_GetTexture.
This commit is contained in:
parent
18546a65e6
commit
274df6ef88
|
@ -963,7 +963,6 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetTexture(LPDIRECT3DDEVICE8 iface, D
|
|||
rc = IWineD3DDevice_GetTexture(This->WineD3DDevice, Stage, (IWineD3DBaseTexture **)&retTexture);
|
||||
if (rc == D3D_OK && NULL != retTexture) {
|
||||
IWineD3DBaseTexture_GetParent(retTexture, (IUnknown **)ppTexture);
|
||||
IWineD3DBaseTexture_Release(retTexture);
|
||||
} else {
|
||||
FIXME("Call to get texture (%d) failed (%p)\n", Stage, retTexture);
|
||||
*ppTexture = NULL;
|
||||
|
|
|
@ -595,7 +595,6 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetTexture(LPDIRECT3DDEVICE9 iface,
|
|||
rc = IWineD3DDevice_GetTexture(This->WineD3DDevice, Stage, (IWineD3DBaseTexture **)&retTexture);
|
||||
if (rc == D3D_OK && NULL != retTexture) {
|
||||
IWineD3DBaseTexture_GetParent(retTexture, (IUnknown **)ppTexture);
|
||||
IWineD3DBaseTexture_Release(retTexture);
|
||||
}else{
|
||||
FIXME("Call to get texture (%d) failed (%p)\n", Stage, retTexture);
|
||||
*ppTexture = NULL;
|
||||
|
|
|
@ -2130,7 +2130,6 @@ IDirect3DDeviceImpl_7_GetRenderState(IDirect3DDevice7 *iface,
|
|||
*Value = texImpl->Handle;
|
||||
IDirectDrawSurface7_Release(parent);
|
||||
}
|
||||
IWineD3DBaseTexture_Release(tex);
|
||||
}
|
||||
return hr;
|
||||
}
|
||||
|
|
|
@ -5827,8 +5827,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetTexture(IWineD3DDevice *iface, DWORD
|
|||
return WINED3DERR_INVALIDCALL;
|
||||
}
|
||||
*ppTexture=This->stateBlock->textures[Stage];
|
||||
if (*ppTexture)
|
||||
IWineD3DBaseTexture_AddRef(*ppTexture);
|
||||
|
||||
return WINED3D_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue