This comes from a failed attempt to "bypass" a fullscreen surface from a Wayland client. Simply not bypassing for this case works around the issue:
- if (!native) - BOOST_THROW_EXCEPTION(std::invalid_argument("could not convert NativeBuffer")); - if (native->flags & mir_buffer_flag_can_scanout && + if (native && native->flags & mir_buffer_flag_can_scanout &&
But this loses efficiency.
This comes from a failed attempt to "bypass" a fullscreen surface from a Wayland client. Simply not bypassing for this case works around the issue:
- if (!native) EXCEPTION( std::invalid_ argument( "could not convert NativeBuffer")); flag_can_ scanout && flag_can_ scanout &&
- BOOST_THROW_
- if (native->flags & mir_buffer_
+ if (native && native->flags & mir_buffer_
But this loses efficiency.