1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Move check for sky cubemap array back into the SkyRD initializer so it is set before being used.

Previously it was moved out of this function becuase we relied on RenderingServer::get_video_adapter_name which wasn't available yet.

However, that was unnecessary since it is just a wrapper around RenderingDevice::get_device_name() which is available.
This commit is contained in:
clayjohn
2025-09-17 11:30:35 -07:00
parent adb2ec043e
commit fc951855ed
3 changed files with 7 additions and 17 deletions

View File

@@ -159,11 +159,6 @@ void RendererCompositorRD::initialize() {
blit.sampler = RD::get_singleton()->sampler_create(RD::SamplerState());
}
#if defined(MACOS_ENABLED) && defined(__x86_64__)
if (scene) {
scene->get_sky()->check_cubemap_array();
}
#endif
}
uint64_t RendererCompositorRD::frame = 1;