Fix for black screen on Linux upon starting a game

Depends on @magcius's branch to be merged.
That's why in IRC I asked Jasper about it.