Fixed static compilation assert on desktop builds