From 85d44dd7b6d04f9798f8bd7cfc0eae86e64890fa Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 18 Dec 2018 12:51:29 -0300 Subject: Actually respect the low quality cubemap filter on mobile, should fix crashes on mobile for #21551 but not sure on intel. --- drivers/gles2/rasterizer_storage_gles2.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers') diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index 3beb8eac33..1c802fb2c2 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -4482,6 +4482,8 @@ void RasterizerStorageGLES2::initialize() { shaders.copy.init(); shaders.cubemap_filter.init(); + bool ggx_hq = GLOBAL_GET("rendering/quality/reflections/high_quality_ggx.mobile"); + shaders.cubemap_filter.set_conditional(CubemapFilterShaderGLES2::LOW_QUALITY, !ggx_hq); { // quad for copying stuff -- cgit v1.2.3