mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-26 08:45:59 +00:00
Bugfix in device_local
This commit is contained in:
parent
a1c08d119e
commit
03a51b7a1e
@ -125,7 +125,6 @@ impl<T: ?Sized> DeviceLocalBuffer<T> {
|
||||
let mem = try!(MemoryPool::alloc(&device.standard_pool(), mem_ty,
|
||||
mem_reqs.size, mem_reqs.alignment));
|
||||
debug_assert!((mem.offset() % mem_reqs.alignment) == 0);
|
||||
debug_assert!(mem.mapped_memory().is_some());
|
||||
try!(buffer.bind_memory(mem.memory(), mem.offset()));
|
||||
|
||||
Ok(Arc::new(DeviceLocalBuffer {
|
||||
|
Loading…
Reference in New Issue
Block a user