Fix Buffer::set_device_dirty()
Merge pull request #579 from jaakkotuosa/fix_set_device_dirty

Fix Buffer::set_device_dirty()