From e7a355c38effe590abf6ada062e412971c26bc7a Mon Sep 17 00:00:00 2001 From: vincentlj Date: Tue, 31 Dec 2013 00:06:08 +0000 Subject: [PATCH] GPUParticle: Use a fake material to avoid Irrlicht to bypass material update. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14845 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/gpuparticles.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/gpuparticles.cpp b/src/graphics/gpuparticles.cpp index 42b64da53..632515e28 100644 --- a/src/graphics/gpuparticles.cpp +++ b/src/graphics/gpuparticles.cpp @@ -236,6 +236,8 @@ void ParticleSystemProxy::setEmitter(scene::IParticleEmitter* emitter) CParticleSystemSceneNode::setEmitter(emitter); if (emitter->getType() != scene::EPET_POINT) return; + // Pass a fake material type to force irrlicht to update its internal states on rendering + setMaterialType(irr_driver->getShader(ES_RAIN)); setAutomaticCulling(0); initGL(); count = emitter->getMaxParticlesPerSecond();