Merge pull request #56465 from winterpixelgames/fix-webgl2-transform-feedback-bug

Fix GPU particles transform feedback error for WebGL 2
This commit is contained in:
Rémi Verschelde 2022-01-03 23:43:27 +01:00 committed by GitHub
commit 888779a573
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6468,6 +6468,7 @@ void RasterizerStorageGLES3::_particles_process(Particles *p_particles, float p_
glBindVertexArray(p_particles->particle_vaos[0]);
glBindBuffer(GL_ARRAY_BUFFER, 0); // ensure this is unbound per WebGL2 spec
glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, 0, p_particles->particle_buffers[1]);
// GLint size = 0;