From c7847b3f6de6a1fd72403db98a8d2652345bbdc0 Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Mon, 16 Aug 2021 12:18:27 +1000 Subject: Moved disabling bokeh shader variants to before the version_create call --- servers/rendering/renderer_rd/effects_rd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servers/rendering/renderer_rd/effects_rd.cpp b/servers/rendering/renderer_rd/effects_rd.cpp index 78bbdb046d..f5b6be4795 100644 --- a/servers/rendering/renderer_rd/effects_rd.cpp +++ b/servers/rendering/renderer_rd/effects_rd.cpp @@ -2098,10 +2098,9 @@ EffectsRD::EffectsRD(bool p_prefer_raster_effects) { } } else { bokeh.compute_shader.initialize(bokeh_modes); - - bokeh.shader_version = bokeh.compute_shader.version_create(); bokeh.compute_shader.set_variant_enabled(BOKEH_GEN_BOKEH_BOX_NOWEIGHT, false); bokeh.compute_shader.set_variant_enabled(BOKEH_GEN_BOKEH_HEXAGONAL_NOWEIGHT, false); + bokeh.shader_version = bokeh.compute_shader.version_create(); for (int i = 0; i < BOKEH_MAX; i++) { if (bokeh.compute_shader.is_variant_enabled(i)) { -- cgit v1.2.3