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:
parent
adb2ec043e
commit
fc951855ed
3 changed files with 7 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue