d3d8: Release the d3d8 shader once we're done with it in IDirect3DDevice8Impl_GetPixelShader().

This commit is contained in:
Henri Verbeet 2009-03-13 10:44:16 +01:00 committed by Alexandre Julliard
parent b7f0dd64da
commit 24100cd026
1 changed files with 1 additions and 0 deletions

View File

@ -2210,6 +2210,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShader(LPDIRECT3DDEVICE8 ifac
hrc = IWineD3DPixelShader_GetParent(object, (IUnknown **)&d3d8_shader);
IWineD3DPixelShader_Release(object);
*ppShader = d3d8_shader->handle;
IDirect3DPixelShader8_Release((IDirect3DPixelShader8 *)d3d8_shader);
} else {
*ppShader = 0;
}