tangled
alpha
login
or
join now
matrixfurry.com
/
monado
0
fork
atom
The open source OpenXR runtime
0
fork
atom
overview
issues
pulls
pipelines
u/distortion: Set blend mode incase it is zero
Jakob Bornecrantz
5 years ago
463330d5
ecbde557
+5
1 changed file
expand all
collapse all
unified
split
src
xrt
auxiliary
util
u_distortion.c
+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
32
+
// Base assumption, the driver can change afterwards.
33
33
+
if (parts->blend_mode == 0) {
34
34
+
parts->blend_mode = XRT_BLEND_MODE_OPAQUE;
35
35
+
}
36
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;