This was old code, Blender now supports multiple screens. The assert was breaking my builds with -DWITH_ASSERT_ABORT=ON