Added a rewind on buffers in shaders.