summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-16 08:57:23 +0200
committerGitHub <noreply@github.com>2021-08-16 08:57:23 +0200
commit437b0dd5f62ec1b949380493889e9351bbc34892 (patch)
tree39e8f782856d823c44ab67cc854bd58596279bd9
parent1ed00dca882118598d14eae315f608af9de758cf (diff)
parentc7847b3f6de6a1fd72403db98a8d2652345bbdc0 (diff)
Merge pull request #51710 from BastiaanOlij/fix_bokeh_version
-rw-r--r--servers/rendering/renderer_rd/effects_rd.cpp3
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)) {