diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2023-01-29 12:14:22 +0300 |
---|---|---|
committer | Yuri Rubinsky <chaosus89@gmail.com> | 2023-02-21 11:23:17 +0300 |
commit | 94831c7209334ea036dec8edbd235b34453083e2 (patch) | |
tree | e1756a8f6a6a4e83a1a40b04c778887428518ffa /servers/rendering/renderer_rd/effects/tone_mapper.cpp | |
parent | 6cde3fac328e97e66b1c12d386deb25af395e215 (diff) | |
download | redot-engine-94831c7209334ea036dec8edbd235b34453083e2.tar.gz |
Forbid passing multiview sampler to the custom function in shaders
Diffstat (limited to 'servers/rendering/renderer_rd/effects/tone_mapper.cpp')
-rw-r--r-- | servers/rendering/renderer_rd/effects/tone_mapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/effects/tone_mapper.cpp b/servers/rendering/renderer_rd/effects/tone_mapper.cpp index 7b152b524f..821960bb3b 100644 --- a/servers/rendering/renderer_rd/effects/tone_mapper.cpp +++ b/servers/rendering/renderer_rd/effects/tone_mapper.cpp @@ -56,7 +56,7 @@ ToneMapper::ToneMapper() { tonemap.shader.initialize(tonemap_modes); - if (!RendererCompositorRD::singleton->is_xr_enabled()) { + if (!RendererCompositorRD::get_singleton()->is_xr_enabled()) { tonemap.shader.set_variant_enabled(TONEMAP_MODE_NORMAL_MULTIVIEW, false); tonemap.shader.set_variant_enabled(TONEMAP_MODE_BICUBIC_GLOW_FILTER_MULTIVIEW, false); tonemap.shader.set_variant_enabled(TONEMAP_MODE_1D_LUT_MULTIVIEW, false); |