diff options
author | Bastiaan Olij <mux213@gmail.com> | 2021-08-16 12:18:27 +1000 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2021-08-16 12:18:27 +1000 |
commit | c7847b3f6de6a1fd72403db98a8d2652345bbdc0 (patch) | |
tree | 39e8f782856d823c44ab67cc854bd58596279bd9 /servers/rendering | |
parent | 1ed00dca882118598d14eae315f608af9de758cf (diff) |
Moved disabling bokeh shader variants to before the version_create call
Diffstat (limited to 'servers/rendering')
-rw-r--r-- | servers/rendering/renderer_rd/effects_rd.cpp | 3 |
1 files changed, 1 insertions, 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)) { |