Merge pull request #51938 from clayjohn/GLES3-reflection-probe

Properly clear cubemap filter state when texture array environment disabled
This commit is contained in:
Max Hilbrunner 2021-08-23 16:02:55 +02:00 committed by GitHub
commit 27bcd0601e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);