From e4609acc5d7cd775ce7e52bc173597e0e53b64be Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Mon, 15 Jan 2018 20:39:17 +0100 Subject: [PATCH] Fix Particles2D in WebGL 2.0 --- 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 7dc4f71b8ea..ed7f3b24d08 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -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]);