mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 13:40:00 +00:00
fix crash on exit
This commit is contained in:
parent
6075bf3fc2
commit
f5164f3804
|
@ -1108,6 +1108,7 @@ CVehicleModelInfo::SetEnvironmentMapCB(RpAtomic *atomic, void *data)
|
|||
void
|
||||
CVehicleModelInfo::SetEnvironmentMap(void)
|
||||
{
|
||||
/*
|
||||
CSimpleModelInfo *wheelmi;
|
||||
int32 i;
|
||||
|
||||
|
@ -1125,6 +1126,7 @@ CVehicleModelInfo::SetEnvironmentMap(void)
|
|||
for(i = 0; i < wheelmi->m_numAtomics; i++)
|
||||
SetEnvironmentMapCB(wheelmi->m_atomics[i], nil);
|
||||
}
|
||||
*/
|
||||
|
||||
#ifdef EXTENDED_PIPELINES
|
||||
CustomPipes::AttachVehiclePipe(m_clump);
|
||||
|
@ -1150,10 +1152,12 @@ CVehicleModelInfo::LoadEnvironmentMaps(void)
|
|||
void
|
||||
CVehicleModelInfo::ShutdownEnvironmentMaps(void)
|
||||
{
|
||||
/*
|
||||
RwTextureDestroy(gpWhiteTexture);
|
||||
gpWhiteTexture = nil;
|
||||
RwFrameDestroy(pMatFxIdentityFrame);
|
||||
pMatFxIdentityFrame = nil;
|
||||
*/
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -905,8 +905,13 @@ void CParticle::Shutdown()
|
|||
RwTextureDestroy(gpRainDripTex[i]);
|
||||
gpRainDripTex[i] = nil;
|
||||
|
||||
RwTextureDestroy(gpRainDripDarkTex[i]); // hmm, i think gpRainDripDarkTex[1(one)] can crash, let's wait for report hehe
|
||||
gpRainDripDarkTex[i] = nil;
|
||||
#ifdef FIX_BUGS
|
||||
if (gpRainDripDarkTex[i])
|
||||
#endif
|
||||
{
|
||||
RwTextureDestroy(gpRainDripDarkTex[i]);
|
||||
gpRainDripDarkTex[i] = nil;
|
||||
}
|
||||
}
|
||||
|
||||
RwTextureDestroy(gpBoatWakeTex);
|
||||
|
|
Loading…
Reference in a new issue