From 7e9327350c1d165bcc9036c86a929b92ae4d75aa Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Fri, 30 Sep 2022 12:32:02 +0200 Subject: Remove ERR_FAIL_COND that never happens in _draw_sky In the conditional `sky` is always true. --- drivers/gles3/rasterizer_scene_gles3.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/gles3') diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index 39617167ef..d106bb31c7 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -737,7 +737,6 @@ void RasterizerSceneGLES3::_draw_sky(RID p_env, const Projection &p_projection, RS::EnvironmentBG background = environment_get_background(p_env); if (sky) { - ERR_FAIL_COND(!sky); sky_material = sky->material; if (sky_material.is_valid()) { -- cgit v1.2.3