Fixed legacy pipeline
This commit is contained in:
parent
3a6cc08596
commit
26d9de4262
@ -148,9 +148,13 @@ CPUParticleManager::CPUParticleManager()
|
|||||||
glBindBuffer(GL_ARRAY_BUFFER, m_particle_quad);
|
glBindBuffer(GL_ARRAY_BUFFER, m_particle_quad);
|
||||||
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
|
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
|
||||||
glBindBuffer(GL_ARRAY_BUFFER, 0);
|
glBindBuffer(GL_ARRAY_BUFFER, 0);
|
||||||
|
|
||||||
// For preloading shaders
|
// For preloading shaders
|
||||||
ParticleRenderer::getInstance();
|
if (CVS->isGLSL())
|
||||||
AlphaTestParticleRenderer::getInstance();
|
{
|
||||||
|
ParticleRenderer::getInstance();
|
||||||
|
AlphaTestParticleRenderer::getInstance();
|
||||||
|
}
|
||||||
} // CPUParticleManager
|
} // CPUParticleManager
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user