Skip to content

Commit

Permalink
Merge pull request #83756 from dsnopek/gpu-particles-quest
Browse files Browse the repository at this point in the history
Fix `GPUParticles3D` on the Meta Quest 2 with OpenGL renderer
  • Loading branch information
akien-mga committed Oct 22, 2023
2 parents 8942b88 + 58775a6 commit d7d3ae6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gles3/storage/particles_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ void ParticlesStorage::particles_set_view_axis(RID p_particles, const Vector3 &p
}

glEnable(GL_RASTERIZER_DISCARD);
glBindFramebuffer(GL_FRAMEBUFFER, 0);
_particles_update_instance_buffer(particles, axis, p_up_axis);
glDisable(GL_RASTERIZER_DISCARD);
}
Expand Down Expand Up @@ -1001,6 +1002,7 @@ void ParticlesStorage::_particles_update_instance_buffer(Particles *particles, c

void ParticlesStorage::update_particles() {
glEnable(GL_RASTERIZER_DISCARD);
glBindFramebuffer(GL_FRAMEBUFFER, 0);

GLuint global_buffer = GLES3::MaterialStorage::get_singleton()->global_shader_parameters_get_uniform_buffer();

Expand Down

0 comments on commit d7d3ae6

Please sign in to comment.