summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndreas Haas <Hinsbart@users.noreply.github.com>2017-05-15 20:11:42 +0200
committerGitHub <noreply@github.com>2017-05-15 20:11:42 +0200
commitc3e43c6d5f219d3c23a53769ad820f4fb7e3ce8c (patch)
tree2ac0bb70e2e95b702a76cc6b873a8ec4bc0be157 /drivers
parentaecab985b5736c60af2e3d794a6f7d9e25272c11 (diff)
Revert "Particles potential crash fix"
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp
index eed2afe71f..1025acceb4 100644
--- a/drivers/gles3/rasterizer_storage_gles3.cpp
+++ b/drivers/gles3/rasterizer_storage_gles3.cpp
@@ -4859,7 +4859,6 @@ void RasterizerStorageGLES3::particles_set_amount(RID p_particles, int p_amount)
Particles *particles = particles_owner.getornull(p_particles);
ERR_FAIL_COND(!particles);
- ERR_FAIL_COND(p_amount < 1);
particles->amount = p_amount;
@@ -4913,7 +4912,6 @@ void RasterizerStorageGLES3::particles_set_lifetime(RID p_particles, float p_lif
Particles *particles = particles_owner.getornull(p_particles);
ERR_FAIL_COND(!particles);
- ERR_FAIL_COND(p_lifetime <= 0);
particles->lifetime = p_lifetime;
}
void RasterizerStorageGLES3::particles_set_pre_process_time(RID p_particles, float p_time) {