summaryrefslogtreecommitdiffstats
path: root/servers/rendering/renderer_rd/effects/tone_mapper.cpp
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2023-01-29 12:14:22 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2023-02-21 11:23:17 +0300
commit94831c7209334ea036dec8edbd235b34453083e2 (patch)
treee1756a8f6a6a4e83a1a40b04c778887428518ffa /servers/rendering/renderer_rd/effects/tone_mapper.cpp
parent6cde3fac328e97e66b1c12d386deb25af395e215 (diff)
downloadredot-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.cpp2
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);