267: Use extend_from_slice instead of copy_from_slice r=kvark a=kocsis1david

`copy_from_slice` gives an error because it expects the lengths to be the same.

Co-authored-by: David <kocsis1david@windowslive.com>
This commit is contained in:
bors[bot]andDavid committed 2019-08-06 17:23:18 +00:00
commit 28dff7c10d
1 file changed
+1 -1
+1 -1
View File
@@ -79,7 +79,7 @@ impl BindGroupEntry {
});
//TODO: validate the count of dynamic offsets to match the layout
self.dynamic_offsets.clear();
self.dynamic_offsets.copy_from_slice(offsets);
self.dynamic_offsets.extend_from_slice(offsets);
Provision::Changed {
was_compatible,