Restoring/storing render state for "flat" shading also supports layerz