Skip to content

Commit

Permalink
Actually respect the low quality cubemap filter on mobile, should fix…
Browse files Browse the repository at this point in the history
… crashes on mobile for #21551 but not sure on intel.
  • Loading branch information
reduz committed Dec 18, 2018
1 parent e3241d5 commit 85d44dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gles2/rasterizer_storage_gles2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85d44dd

Please sign in to comment.