Problems joining server

When ever i join a server i press f1 to open console to see whats wrong and it says. Skipped rendering frame because GFx device is in an invalid state (device lost)