GPUParticles: Use size value so that it doesn't get optimized away

Spotted by arb debug output.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj 2014-01-05 18:44:52 +00:00
parent ce62c0b3b7
commit aad565a9bf

View File

@ -27,6 +27,6 @@ void main(void)
new_particle_position = (adjusted_lifetime < 1.) ? particle_position + particle_velocity.xyz * float(dt) : initialposition.xyz;
new_lifetime = (adjusted_lifetime < 1.) ? adjusted_lifetime : 0.;
new_particle_velocity = (adjusted_lifetime < 1.) ? particle_velocity : adjusted_initial_velocity.xyz;
new_size = size_initial;
new_size = (adjusted_lifetime < 1.) ? size : size_initial;
gl_Position = vec4(0.);
}