Skipped rendering

Getting “skipped rendering frame because of GfxDevice is in invalid state(device lost)”

I see that error in the console too sometimes. I have no idea what causes it.
I’m playing on an AMD card.