diff options
author | Juan Linietsky <juan@godotengine.org> | 2018-12-18 12:51:29 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2018-12-18 12:52:50 -0300 |
commit | 85d44dd7b6d04f9798f8bd7cfc0eae86e64890fa (patch) | |
tree | b6edb02f361757064b31edaf0ba10cc3c9acd5ab /drivers | |
parent | e3241d54614ca1a8d18d4273f9e4a3b56ce74c39 (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.cpp | 2 |
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 |