From 987aef4e0d63c6ac828159f4bf700adfaa977fbf Mon Sep 17 00:00:00 2001 From: clayjohn Date: Fri, 20 Aug 2021 19:12:38 -0700 Subject: [PATCH] Properly clear cubemap filter state when texture array environment disabled --- drivers/gles3/rasterizer_storage_gles3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 15c1cc3fc70..efe372cc0e8 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -2066,6 +2066,7 @@ void RasterizerStorageGLES3::sky_set_texture(RID p_sky, RID p_panorama, int p_ra } shaders.cubemap_filter.set_conditional(CubemapFilterShaderGLES3::USE_DUAL_PARABOLOID, false); shaders.cubemap_filter.set_conditional(CubemapFilterShaderGLES3::USE_SOURCE_PANORAMA, false); + shaders.cubemap_filter.set_conditional(CubemapFilterShaderGLES3::USE_SOURCE_DUAL_PARABOLOID, false); //restore ranges glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 0);