Cycles: Fully initialize the dummy particle at index 0.
authorLukas Toenne <lukas.toenne@googlemail.com>
Fri, 31 Aug 2012 19:39:06 +0000 (19:39 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Fri, 31 Aug 2012 19:39:06 +0000 (19:39 +0000)
intern/cycles/render/particles.cpp

index c3e4b9510ded4ea146bd11b8c0727c5156c1a819..5ddd1e6c798882f440d939c299d13593c207a281 100644 (file)
@@ -67,6 +67,10 @@ void ParticleSystemManager::device_update_particles(Device *device, DeviceScene
        
        /* dummy particle */
        particles[0] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
+       particles[1] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
+       particles[2] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
+       particles[3] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
+       particles[4] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
        
        int i = 1;
        foreach(ParticleSystem *psys, scene->particle_systems) {