The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/main: Free plane_properties earlier

+5 -1
+5 -1
src/xrt/compositor/main/comp_window_direct.c
··· 182 182 // Select the plane. 183 183 //! @todo actually select the plane. 184 184 uint32_t plane_index = 0; 185 + uint32_t plane_stack_index = plane_properties[plane_index].currentStackIndex; 186 + 187 + free(plane_properties); 188 + plane_properties = NULL; 185 189 186 190 // Select the mode. 187 191 VkDisplayModeKHR display_mode = comp_window_direct_get_primary_display_mode(cts, display); ··· 196 200 .flags = 0, 197 201 .displayMode = display_mode, 198 202 .planeIndex = plane_index, 199 - .planeStackIndex = plane_properties[plane_index].currentStackIndex, 203 + .planeStackIndex = plane_stack_index, 200 204 .transform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR, 201 205 .globalAlpha = 1.0, 202 206 .alphaMode = choose_alpha_mode(plane_caps.supportedAlpha),