Fixed crash on exit race with OpenGL 2.1
This commit is contained in:
parent
895579cba9
commit
bac60ff126
@ -20,6 +20,7 @@
|
||||
|
||||
#include "config/user_config.hpp"
|
||||
#include "io/file_manager.hpp"
|
||||
#include "graphics/central_settings.hpp"
|
||||
#include "graphics/irr_driver.hpp"
|
||||
#include "graphics/particle_emitter.hpp"
|
||||
#include "graphics/particle_kind.hpp"
|
||||
@ -120,9 +121,13 @@ KartGFX::~KartGFX()
|
||||
if(m_all_emitters[i])
|
||||
delete m_all_emitters[i];
|
||||
} // for i < KGFX_COUNT
|
||||
m_nitro_light->drop();
|
||||
m_skidding_light_1->drop();
|
||||
m_skidding_light_2->drop();
|
||||
|
||||
if (CVS->isGLSL())
|
||||
{
|
||||
m_nitro_light->drop();
|
||||
m_skidding_light_1->drop();
|
||||
m_skidding_light_2->drop();
|
||||
}
|
||||
|
||||
} // ~KartGFX
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user