Skip to content

Commit

Permalink
Fix framebuffers in sky not being created on mobile renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiaanOlij committed Apr 4, 2023
1 parent ef02571 commit 901cd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/renderer_rd/environment/sky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 901cd7e

Please sign in to comment.