summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-14 07:30:27 +0100
committerGitHub <noreply@github.com>2020-02-14 07:30:27 +0100
commit6dae536f6cb8adce8674a161d8d73c413cbf1a6e (patch)
tree83e63475e70ffc2e60f0d1d856160076f86ee7fd
parentac9ec5336d83aa29f19cf35f643bf1008315f9ba (diff)
parentb878e5bbe8521c9795b50c30179e6d455920254b (diff)
Merge pull request #36200 from clayjohn/VULKAN-sky-error
Fix error flood with sky background
-rw-r--r--servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp b/servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp
index f029cddc79..63a406a392 100644
--- a/servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp
+++ b/servers/visual/rasterizer_rd/rasterizer_scene_high_end_rd.cpp
@@ -1821,7 +1821,7 @@ void RasterizerSceneHighEndRD::_render_scene(RID p_render_buffer, const Transfor
case VS::ENV_BG_SKY: {
RID sky = environment_get_sky(p_environment);
if (sky.is_valid()) {
- radiance_uniform_set = sky_get_radiance_uniform_set_rd(sky, radiance_uniform_set, RADIANCE_UNIFORM_SET);
+ radiance_uniform_set = sky_get_radiance_uniform_set_rd(sky, default_shader_rd, RADIANCE_UNIFORM_SET);
draw_sky = true;
}
} break;