diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-08-26 17:43:58 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 12:01:05 +0100 |
commit | 2d6a916835bd851b2ea03a2e887ba83f0065dae4 (patch) | |
tree | 25542172b4275da52396b40033d8e77f7e2ce64c /drivers/gles3 | |
parent | f7aa7927e7268f7b9f99eed18e13dd04e25be8b2 (diff) |
Environment sky more or less working.
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 5b19dee7cb..54e1264df9 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -1775,8 +1775,9 @@ void RasterizerStorageGLES3::sky_set_texture(RID p_sky, RID p_panorama, int p_ra } sky->panorama = p_panorama; - if (!sky->panorama.is_valid()) + if (!sky->panorama.is_valid()) { return; //cleared + } Texture *texture = texture_owner.getornull(sky->panorama); if (!texture) { |