Fix to remove lingering dependency of grid on base graphics
Graphics engine now keeps track of whether a device is dirty and
individual graphics systems can keep track separately of whether they
have dirtied the device.
Base only checks validity of device if it has dirtied the device.