d3d8: Release the d3d8 shader once we're done with it in IDirect3DDevice8Impl_GetPixelShader().
This commit is contained in:
parent
b7f0dd64da
commit
24100cd026
|
@ -2210,6 +2210,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShader(LPDIRECT3DDEVICE8 ifac
|
||||||
hrc = IWineD3DPixelShader_GetParent(object, (IUnknown **)&d3d8_shader);
|
hrc = IWineD3DPixelShader_GetParent(object, (IUnknown **)&d3d8_shader);
|
||||||
IWineD3DPixelShader_Release(object);
|
IWineD3DPixelShader_Release(object);
|
||||||
*ppShader = d3d8_shader->handle;
|
*ppShader = d3d8_shader->handle;
|
||||||
|
IDirect3DPixelShader8_Release((IDirect3DPixelShader8 *)d3d8_shader);
|
||||||
} else {
|
} else {
|
||||||
*ppShader = 0;
|
*ppShader = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue