Fix for shaders and VBOs breaking on game resume

This is ex's fix from http://getmoai.com/forums/post7439.html#p7439