### Godot version

master

### System information

> Starting from Godot 4.1, you can copy this information to your clipboard by using Help > Copy System Info at the top of the editor window.

This crashed my editor 😆 

### Issue description


```
================================================================
CrashHandlerException: Program crashed
Engine version: Godot Engine v4.1.dev.mono.custom_build (72f7131be1be81e3b8c3d45732d55e5765b95dde)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[0] EditorNode::_get_system_info (C:\Users\zaevi\source\Godot\godot-source\editor\editor_node.cpp:4378)
[1] EditorNode::_menu_option_confirm (C:\Users\zaevi\source\Godot\godot-source\editor\editor_node.cpp:2900)
[2] CallableCustomMethodPointer<EditorNode,int>::call (C:\Users\zaevi\source\Godot\godot-source\core\object\callable_method_pointer.h:105)
[3] Callable::callp (C:\Users\zaevi\source\Godot\godot-source\core\variant\callable.cpp:51)
[4] Object::emit_signalp (C:\Users\zaevi\source\Godot\godot-source\core\object\object.cpp:1069)
[5] Node::emit_signalp (C:\Users\zaevi\source\Godot\godot-source\scene\main\node.cpp:3568)
[6] Object::emit_signal<int> (C:\Users\zaevi\source\Godot\godot-source\core\object\object.h:891)
[7] PopupMenu::activate_item (C:\Users\zaevi\source\Godot\godot-source\scene\gui\popup_menu.cpp:1822)
[8] PopupMenu::gui_input (C:\Users\zaevi\source\Godot\godot-source\scene\gui\popup_menu.cpp:453)
[9] CallableCustomMethodPointer<PopupMenu,Ref<InputEvent> const &>::call (C:\Users\zaevi\source\Godot\godot-source\core\object\callable_method_pointer.h:104)
[10] Callable::callp (C:\Users\zaevi\source\Godot\godot-source\core\variant\callable.cpp:51)
[11] Object::emit_signalp (C:\Users\zaevi\source\Godot\godot-source\core\object\object.cpp:1069)
[12] Node::emit_signalp (C:\Users\zaevi\source\Godot\godot-source\scene\main\node.cpp:3568)
[13] Window::_window_input (C:\Users\zaevi\source\Godot\godot-source\scene\main\window.cpp:1458)
[14] CallableCustomMethodPointer<Window,Ref<InputEvent> const &>::call (C:\Users\zaevi\source\Godot\godot-source\core\object\callable_method_pointer.h:104)
[15] Callable::callp (C:\Users\zaevi\source\Godot\godot-source\core\variant\callable.cpp:51)
[16] DisplayServerWindows::_dispatch_input_event (C:\Users\zaevi\source\Godot\godot-source\platform\windows\display_server_windows.cpp:2369)
[17] Input::_parse_input_event_impl (C:\Users\zaevi\source\Godot\godot-source\core\input\input.cpp:708)
[18] Input::flush_buffered_events (C:\Users\zaevi\source\Godot\godot-source\core\input\input.cpp:967)
[19] DisplayServerWindows::process_events (C:\Users\zaevi\source\Godot\godot-source\platform\windows\display_server_windows.cpp:2063)
[20] OS_Windows::run (C:\Users\zaevi\source\Godot\godot-source\platform\windows\os_windows.cpp:1478)
[21] widechar_main (C:\Users\zaevi\source\Godot\godot-source\platform\windows\godot_windows.cpp:181)
[22] _main (C:\Users\zaevi\source\Godot\godot-source\platform\windows\godot_windows.cpp:205)
[23] main (C:\Users\zaevi\source\Godot\godot-source\platform\windows\godot_windows.cpp:217)
[24] __scrt_common_main_seh (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
[25] <couldn't map PC to fn name>
-- END OF BACKTRACE --
================================================================
```

### Steps to reproduce

Change renderer to `gl_compatibility` and click `Help > Copy System Info`

### Minimal reproduction project

N/A
}
	GLuint read_fbo = 0;
	glGenFramebuffers(1, &read_fbo);
	glBindFramebuffer(GL_READ_FRAMEBUFFER, read_fbo);
	if (rt->view_count > 1) {
		glFramebufferTextureLayer(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, rt->color, 0, p_layer);
	} else {
		glFramebufferTexture2D(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, rt->color, 0);
	}
	glReadBuffer(GL_COLOR_ATTACHMENT0);
	glBindFramebuffer(GL_DRAW_FRAMEBUFFER, GLES3::TextureStorage::system_fbo);
	if (p_first) {
		Size2i win_size = DisplayServer::get_singleton()->window_get_size();
		if (p_screen_rect.position != Vector2() || p_screen_rect.size != rt->size) {
			
			glViewport(0, 0, win_size.width, win_size.height);
			glClearColor(0.0, 0.0, 0.0, 1.0);
			glClear(GL_COLOR_BUFFER_BIT);
		}
	}
	Vector2i screen_rect_end = p_screen_rect.get_end();
	glBlitFramebuffer(0, 0, rt->size.x, rt->size.y,
			p_screen_rect.position.x, flip_y ? screen_rect_end.y : p_screen_rect.position.y, screen_rect_end.x, flip_y ? p_screen_rect.position.y : screen_rect_end.y,
			GL_COLOR_BUFFER_BIT, GL_NEAREST);
	if (read_fbo != 0) {
		glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
		glDeleteFramebuffers(1, &read_fbo);
	}
}
void RasterizerGLES3::blit_render_targets_to_screen(DisplayServer::WindowID p_screen, const BlitToScreen *p_render_targets, int p_amount) {