mirror of
https://github.com/halpz/re3.git
synced 2025-07-25 15:22:47 +00:00
fix custom pipes mem leak
This commit is contained in:
@ -171,6 +171,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;
|
||||
}
|
||||
@ -362,6 +365,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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user