57c34139d3
At the moment, attach_shm() will modify the gl_buffer_state in place, then compare it and see if it differs enough to require a new one. That rather mixes up the old and new worlds, so quite explicitly build up a shadow gl_buffer_state with variables first before we change the one which already exists. Signed-off-by: Daniel Stone <daniels@collabora.com>