Merge pull request #15755 from eska014/webgl-particles2d

Fix Particles2D in WebGL 2.0
This commit is contained in:
Rémi Verschelde 2018-01-15 22:06:07 +01:00 committed by GitHub
commit 8dc1c0bda5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5694,6 +5694,7 @@ void RasterizerStorageGLES3::_particles_process(Particles *p_particles, float p_
SWAP(p_particles->particle_buffers[0], p_particles->particle_buffers[1]);
SWAP(p_particles->particle_vaos[0], p_particles->particle_vaos[1]);
glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 0, 0);
glBindVertexArray(0);
/* //debug particles :D
glBindBuffer(GL_ARRAY_BUFFER, p_particles->particle_buffers[0]);