summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-30 17:44:26 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-30 17:44:26 +0200
commit28154b9a07d1eeb372e0757582dd913e2237da74 (patch)
treed2b066bee3ce7bc5c22f7792d21c7e5b3d6f66b0 /drivers
parent539d21318f3a3a676993187c7f6647cba39dba96 (diff)
parent7e9327350c1d165bcc9036c86a929b92ae4d75aa (diff)
Merge pull request #66660 from Sauermann/fix-never-happening-error-condition
Remove ERR_FAIL_COND that never happens in _draw_sky
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles3/rasterizer_scene_gles3.cpp1
1 files changed, 0 insertions, 1 deletions
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()) {