Better fix for legacy pipeline
This commit is contained in:
parent
45e20e5a9a
commit
a9793a10a0
@ -137,6 +137,8 @@ CPUParticleManager::GLParticle::GLParticle(bool flips)
|
||||
// ----------------------------------------------------------------------------
|
||||
CPUParticleManager::CPUParticleManager()
|
||||
{
|
||||
assert(CVS->isGLSL());
|
||||
|
||||
const float vertices[] =
|
||||
{
|
||||
-0.5f, 0.5f, 0.0f, 0.0f,
|
||||
@ -150,11 +152,8 @@ CPUParticleManager::CPUParticleManager()
|
||||
glBindBuffer(GL_ARRAY_BUFFER, 0);
|
||||
|
||||
// For preloading shaders
|
||||
if (CVS->isGLSL())
|
||||
{
|
||||
ParticleRenderer::getInstance();
|
||||
AlphaTestParticleRenderer::getInstance();
|
||||
}
|
||||
ParticleRenderer::getInstance();
|
||||
AlphaTestParticleRenderer::getInstance();
|
||||
} // CPUParticleManager
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -308,12 +308,13 @@ void Track::cleanup()
|
||||
Graph::destroy();
|
||||
ItemManager::destroy();
|
||||
#ifndef SERVER_ONLY
|
||||
if (!ProfileWorld::isNoGraphics())
|
||||
{
|
||||
CPUParticleManager::getInstance()->cleanMaterialMap();
|
||||
}
|
||||
if (CVS->isGLSL())
|
||||
{
|
||||
if (!ProfileWorld::isNoGraphics())
|
||||
{
|
||||
CPUParticleManager::getInstance()->cleanMaterialMap();
|
||||
}
|
||||
|
||||
SP::resetEmptyFogColor();
|
||||
}
|
||||
ParticleKindManager::get()->cleanUpTrackSpecificGfx();
|
||||
|
Loading…
x
Reference in New Issue
Block a user