I managed to get around this by switching to DirectX 9. Which is not a great solution but works for the moment.