From 901cd7e3fecafbf77ec9874bf5ea77f05166e63d Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Wed, 5 Apr 2023 09:43:03 +1000 Subject: [PATCH] Fix framebuffers in sky not being created on mobile renderer --- servers/rendering/renderer_rd/environment/sky.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/rendering/renderer_rd/environment/sky.cpp b/servers/rendering/renderer_rd/environment/sky.cpp index ce2a548e8a13..ed0a67f72a8d 100644 --- a/servers/rendering/renderer_rd/environment/sky.cpp +++ b/servers/rendering/renderer_rd/environment/sky.cpp @@ -362,7 +362,7 @@ void SkyRD::ReflectionData::update_reflection_data(int p_size, int p_mipmaps, bo mm.size.height = mmh; mm.view = RD::get_singleton()->texture_create_shared_from_slice(RD::TextureView(), downsampled_radiance_cubemap, 0, j, 1, RD::TEXTURE_SLICE_CUBEMAP); RD::get_singleton()->set_resource_name(mm.view, "Downsampled Radiance Cubemap Mip " + itos(j) + " "); - if (render_buffers_can_be_storage) { + if (!render_buffers_can_be_storage) { // we need a framebuffer for each side of our cubemap for (int k = 0; k < 6; k++) {