Flashing Viewport in Game Engine play mode

Using Blender 2.78 on Ubuntu 16.04, when running a game through the camera, the viewport area outside the camera flashes constantly.

You can partially see it in this video: https://youtu.be/OsAWzB5iGsc?t=30s

Any idea what setting I can change to fix this? Thanks!