The open source OpenXR runtime

u/distortion: Set blend mode incase it is zero

+5
+5
src/xrt/auxiliary/util/u_distortion.c
··· 29 29 uint32_t w_pixels = args->screen.w_pixels / 2; 30 30 uint32_t h_pixels = args->screen.h_pixels; 31 31 32 + // Base assumption, the driver can change afterwards. 33 + if (parts->blend_mode == 0) { 34 + parts->blend_mode = XRT_BLEND_MODE_OPAQUE; 35 + } 36 + 32 37 // Use the full screen. 33 38 parts->screens[0].w_pixels = args->screen.w_pixels; 34 39 parts->screens[0].h_pixels = args->screen.h_pixels;