Fix `GPUParticles3D` on the Meta Quest 2 with OpenGL renderer
(cherry picked from commit 58775a6c67
)
This commit is contained in:
parent
c148398735
commit
10eafe236c
|
@ -793,6 +793,7 @@ void ParticlesStorage::particles_set_view_axis(RID p_particles, const Vector3 &p
|
||||||
}
|
}
|
||||||
|
|
||||||
glEnable(GL_RASTERIZER_DISCARD);
|
glEnable(GL_RASTERIZER_DISCARD);
|
||||||
|
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||||
_particles_update_instance_buffer(particles, axis, p_up_axis);
|
_particles_update_instance_buffer(particles, axis, p_up_axis);
|
||||||
glDisable(GL_RASTERIZER_DISCARD);
|
glDisable(GL_RASTERIZER_DISCARD);
|
||||||
}
|
}
|
||||||
|
@ -976,6 +977,7 @@ void ParticlesStorage::_particles_update_instance_buffer(Particles *particles, c
|
||||||
|
|
||||||
void ParticlesStorage::update_particles() {
|
void ParticlesStorage::update_particles() {
|
||||||
glEnable(GL_RASTERIZER_DISCARD);
|
glEnable(GL_RASTERIZER_DISCARD);
|
||||||
|
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
||||||
|
|
||||||
GLuint global_buffer = GLES3::MaterialStorage::get_singleton()->global_shader_parameters_get_uniform_buffer();
|
GLuint global_buffer = GLES3::MaterialStorage::get_singleton()->global_shader_parameters_get_uniform_buffer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue