Flush write_texture staging memory

This commit is contained in:
Dzmitry Malyshau
2020-11-28 12:12:51 -05:00
parent dd31c924df
commit ee87d7fae7

View File

@@ -401,6 +401,9 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
}
}
stage.memory.unmap(&device.raw);
if !stage.memory.is_coherent() {
stage.memory.flush_range(&device.raw, 0, None)?;
}
let region = hal::command::BufferImageCopy {
buffer_offset: 0,