mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-06 02:55:55 +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,9 +905,14 @@ 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
|
||||
#ifdef FIX_BUGS
|
||||
if (gpRainDripDarkTex[i])
|
||||
#endif
|
||||
{
|
||||
RwTextureDestroy(gpRainDripDarkTex[i]);
|
||||
gpRainDripDarkTex[i] = nil;
|
||||
}
|
||||
}
|
||||
|
||||
RwTextureDestroy(gpBoatWakeTex);
|
||||
gpBoatWakeTex = nil;
|
||||
|
|
Loading…
Reference in a new issue