mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-12 12:50:34 +00:00
fix custom pipes mem leak
This commit is contained in:
parent
1867a6c47b
commit
426364b961
3 changed files with 24 additions and 15 deletions
|
@ -172,6 +172,9 @@ DestroyVehiclePipe(void)
|
|||
rw::d3d::destroyVertexShader(neoVehicle_VS);
|
||||
neoVehicle_VS = nil;
|
||||
|
||||
rw::d3d::destroyPixelShader(neoVehicle_PS);
|
||||
neoVehicle_PS = nil;
|
||||
|
||||
((rw::d3d9::ObjPipeline*)vehiclePipe)->destroy();
|
||||
vehiclePipe = nil;
|
||||
}
|
||||
|
@ -363,6 +366,12 @@ CreateGlossPipe(void)
|
|||
void
|
||||
DestroyGlossPipe(void)
|
||||
{
|
||||
rw::d3d::destroyVertexShader(neoGloss_VS);
|
||||
neoGloss_VS = nil;
|
||||
|
||||
rw::d3d::destroyPixelShader(neoGloss_PS);
|
||||
neoGloss_PS = nil;
|
||||
|
||||
((rw::d3d9::ObjPipeline*)glossPipe)->destroy();
|
||||
glossPipe = nil;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue