### Godot version

v4.0.3.stable.official [5222a99f5]

### System information

Windows 11, AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx     2.10 GHz

### Issue description

  The editor crashes when it is minimised if it isn't the foreground window, eg. via Windows key + M.  This didn't occur in 4.0.2, but is now occurring in 4.0.3. I'll just mention that /interface/editor/save_on_focus_loss is false because another issue mentions something like this but with that property set to true.

### Steps to reproduce

N/A

### Minimal reproduction project

N/A
pImageIndices[present.swapchainCount] = w->current_buffer;
		present.swapchainCount++;
	}
#if 0
	if (is_device_extension_enabled(VK_KHR_incremental_present_enabled)) {
		
		
		
		
		
		
		uint32_t eighthOfWidth = width / 8;
		uint32_t eighthOfHeight = height / 8;
		VkRectLayerKHR rect = {
			 eighthOfWidth,
			 eighthOfHeight,
			 eighthOfWidth * 6,
			 eighthOfHeight * 6,
			 0,
		};
		VkPresentRegionKHR region = {
			 1,
			 &rect,
		};
		VkPresentRegionsKHR regions = {
			 VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR,
			 present.pNext,
			 present.swapchainCount,
			 &region,
		};