Actually respect the low quality cubemap filter on mobile, should fix crashes on mobile for #21551 but not sure on intel.

This commit is contained in:
Juan Linietsky 2018-12-18 12:51:29 -03:00
parent e3241d5461
commit 85d44dd7b6

View file

@ -4482,6 +4482,8 @@ void RasterizerStorageGLES2::initialize() {
shaders.copy.init(); shaders.copy.init();
shaders.cubemap_filter.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 // quad for copying stuff