summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2018-12-18 12:51:29 -0300
committerJuan Linietsky <juan@godotengine.org>2018-12-18 12:52:50 -0300
commit85d44dd7b6d04f9798f8bd7cfc0eae86e64890fa (patch)
treeb6edb02f361757064b31edaf0ba10cc3c9acd5ab /drivers
parente3241d54614ca1a8d18d4273f9e4a3b56ce74c39 (diff)
Actually respect the low quality cubemap filter on mobile, should fix crashes on mobile for #21551 but not sure on intel.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp2
1 files changed, 2 insertions, 0 deletions
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