summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-01-15 22:06:07 +0100
committerGitHub <noreply@github.com>2018-01-15 22:06:07 +0100
commit8dc1c0bda536c0fbd27085d5b96f694ec7d29faa (patch)
treeb31780fcaf1445645f5684036932a4ab7ec86cfe
parentd6caf326754572e53be6497293049442c5fedacf (diff)
parente4609acc5d7cd775ce7e52bc173597e0e53b64be (diff)
Merge pull request #15755 from eska014/webgl-particles2d
Fix Particles2D in WebGL 2.0
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp
index 7dc4f71b8e..ed7f3b24d0 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]);