### Godot version

4.0 Beta 11

### System information

Windows 10 version 22H2, GeForce Game Ready Driver Version 528.02, GTX 1070

### Issue description

Since Beta 11 this error is given whenever a project is run in the forward+ renderer with OpenXR enabled. This error is not present with Beta 10 and previous versions.
![image](https://user-images.githubusercontent.com/38119387/212044209-1179b908-f010-47a1-ae53-bc2faadc30de.png)

I've tested with projects created in previous versions as well as the current version (Beta 11)

### Steps to reproduce

Create project, enable OpenXR in project settings, and run.

### Minimal reproduction project

N/A
uint32_t num_reference_spaces = 0;
	XrReferenceSpaceType *supported_reference_spaces = nullptr;
	
	uint32_t num_swapchain_formats = 0;
	int64_t *supported_swapchain_formats = nullptr;
	
	XrFormFactor form_factor = XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY;
	XrViewConfigurationType view_configuration = XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO;
	XrReferenceSpaceType reference_space = XR_REFERENCE_SPACE_TYPE_STAGE;
	
	bool submit_depth_buffer = false; 
	
	XrInstance instance = XR_NULL_HANDLE;
	XrSystemId system_id = 0;
	String system_name;
	uint32_t vendor_id = 0;
	XrSystemTrackingProperties tracking_properties;
	XrSession session = XR_NULL_HANDLE;
	XrSessionState session_state = XR_SESSION_STATE_UNKNOWN;
	bool running = false;
	XrFrameState frame_state = { XR_TYPE_FRAME_STATE, NULL, 0, 0, false };
	OpenXRGraphicsExtensionWrapper *graphics_extension = nullptr;
	XrSystemGraphicsProperties graphics_properties;
	uint32_t view_count = 0;
	XrViewConfigurationView *view_configuration_views = nullptr;
	XrView *views = nullptr;
	XrCompositionLayerProjectionView *projection_views = nullptr;
	XrCompositionLayerDepthInfoKHR *depth_views = nullptr; 
	enum OpenXRSwapChainTypes {