Fixed legacy pipeline

This commit is contained in:
Deve 2018-08-31 22:33:55 +02:00
parent 3a6cc08596
commit 26d9de4262

View File

@ -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
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------