diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-09 20:49:58 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-09 20:49:58 +0100 |
commit | 034cd62a7740a51d2527272a44bf225cd7a89724 (patch) | |
tree | bb0f0e63cb5b7eb720d5329b1c79d027d906d325 /scene/3d/particles.cpp | |
parent | 5fa5678eb70d6f12800a4862215f54f4c20a4a96 (diff) | |
download | redot-engine-034cd62a7740a51d2527272a44bf225cd7a89724.tar.gz |
Warn when using GPU particles with GLES2
Closes #25733.
Diffstat (limited to 'scene/3d/particles.cpp')
-rw-r--r-- | scene/3d/particles.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/3d/particles.cpp b/scene/3d/particles.cpp index 2add50dd5d..78b2958400 100644 --- a/scene/3d/particles.cpp +++ b/scene/3d/particles.cpp @@ -29,6 +29,8 @@ /*************************************************************************/ #include "particles.h" + +#include "core/os/os.h" #include "scene/resources/particles_material.h" #include "servers/visual_server.h" @@ -224,6 +226,10 @@ bool Particles::get_fractional_delta() const { String Particles::get_configuration_warning() const { + if (OS::get_singleton()->get_current_video_driver() == OS::VIDEO_DRIVER_GLES2) { + return TTR("GPU-based particles are not supported by the GLES2 video driver.\nUse the CPUParticles node instead. You can use the \"Convert to CPUParticles\" option for this purpose."); + } + String warnings; bool meshes_found = false; |