| @@ -250,6 +250,8 @@ bool LunarWM_xr_init(LunarWM *this) | |||||||
| 	    XR_VERSION_MINOR(reqs.maxApiVersionSupported), | 	    XR_VERSION_MINOR(reqs.maxApiVersionSupported), | ||||||
| 	    XR_VERSION_PATCH(reqs.maxApiVersionSupported)); | 	    XR_VERSION_PATCH(reqs.maxApiVersionSupported)); | ||||||
|  |  | ||||||
|  | 	wlr_log(WLR_DEBUG, "Creating XR stuff.."); | ||||||
|  |  | ||||||
| 	glEnable(GL_DEBUG_OUTPUT_KHR); | 	glEnable(GL_DEBUG_OUTPUT_KHR); | ||||||
| 	glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR); | 	glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR); | ||||||
|  |  | ||||||
| @@ -278,6 +280,7 @@ bool LunarWM_xr_init(LunarWM *this) | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	// Swapchain time! | 	// Swapchain time! | ||||||
|  | 	wlr_log(WLR_DEBUG, "Creating XR swapchains..."); | ||||||
| 	XrViewConfigurationType *a_view_config_types; | 	XrViewConfigurationType *a_view_config_types; | ||||||
| 	uint32_t view_config_types_count = 0; | 	uint32_t view_config_types_count = 0; | ||||||
| 	{ | 	{ | ||||||
| @@ -587,6 +590,7 @@ bool LunarWM_xr_init(LunarWM *this) | |||||||
| 	assert(this->xr.instance); | 	assert(this->xr.instance); | ||||||
| 	assert(this->xr.system_id); | 	assert(this->xr.system_id); | ||||||
|  |  | ||||||
|  | 	wlr_log(WLR_DEBUG, "Fetching blend modes..."); | ||||||
| 	XrEnvironmentBlendMode *a_environment_blend_modes; | 	XrEnvironmentBlendMode *a_environment_blend_modes; | ||||||
| 	uint32_t a_environment_blend_modes_count = 0; | 	uint32_t a_environment_blend_modes_count = 0; | ||||||
| 	{ // Get available blend modes | 	{ // Get available blend modes | ||||||
| @@ -636,6 +640,7 @@ bool LunarWM_xr_init(LunarWM *this) | |||||||
| 		this->xr.environment_blend_mode = XR_ENVIRONMENT_BLEND_MODE_OPAQUE; | 		this->xr.environment_blend_mode = XR_ENVIRONMENT_BLEND_MODE_OPAQUE; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	wlr_log(WLR_DEBUG, "Getting reference space..."); | ||||||
| 	{ // Reference space | 	{ // Reference space | ||||||
| 		XrReferenceSpaceCreateInfo const ci = { | 		XrReferenceSpaceCreateInfo const ci = { | ||||||
| 			.type = XR_TYPE_REFERENCE_SPACE_CREATE_INFO, | 			.type = XR_TYPE_REFERENCE_SPACE_CREATE_INFO, | ||||||
| @@ -714,6 +719,8 @@ bool LunarWM_xr_init(LunarWM *this) | |||||||
| 	free(a_environment_blend_modes); | 	free(a_environment_blend_modes); | ||||||
| 	vector_free(v_active_instance_extensions); | 	vector_free(v_active_instance_extensions); | ||||||
|  |  | ||||||
|  | 	wlr_log(WLR_INFO, "OpenXR initialized."); | ||||||
|  |  | ||||||
| 	return true; | 	return true; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user