X11: Fix creating RenderingDevice after #93706

The line was removed by mistake.
This commit is contained in:
Rémi Verschelde 2024-06-29 14:03:18 +02:00
parent d6385d7509
commit 25de53e147
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -6261,6 +6261,7 @@ DisplayServerX11::DisplayServerX11(const String &p_rendering_driver, WindowMode
#if defined(RD_ENABLED)
if (rendering_context) {
rendering_device = memnew(RenderingDevice);
if (rendering_device->initialize(rendering_context, MAIN_WINDOW_ID) != OK) {
memdelete(rendering_device);
rendering_device = nullptr;