From 2c60c29340955d3e68812ed3a84bf9e3104acc7d Mon Sep 17 00:00:00 2001 From: Brian Semrau Date: Sun, 2 Jan 2022 23:30:24 -0500 Subject: [PATCH] Fix GPU particles transform feedback for WebGL 2 --- drivers/gles3/rasterizer_storage_gles3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 04077e25840..2a00e26abd2 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -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;