mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Add various null checks in RenderingServer
This commit is contained in:
@@ -170,6 +170,10 @@ void RendererCompositorRD::finalize() {
|
||||
}
|
||||
|
||||
void RendererCompositorRD::set_boot_image(const Ref<Image> &p_image, const Color &p_color, bool p_scale, bool p_use_filter) {
|
||||
if (p_image.is_null() || p_image->is_empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
RD::get_singleton()->prepare_screen_for_drawing();
|
||||
|
||||
RID texture = texture_storage->texture_allocate();
|
||||
|
||||
Reference in New Issue
Block a user