Do not save/restore video memory if we are not using linear frame buffer.
Note this partially revert r233896.