Skip to content

Commit

Permalink
Merge pull request #56465 from winterpixelgames/fix-webgl2-transform-…
Browse files Browse the repository at this point in the history
…feedback-bug

Fix GPU particles transform feedback error for WebGL 2
  • Loading branch information
akien-mga committed Jan 3, 2022
2 parents 0aa7768 + 2c60c29 commit 888779a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gles3/rasterizer_storage_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 888779a

Please sign in to comment.