Bugfix in device_local

This commit is contained in:
Pierre Krieger 2016-04-15 14:11:56 +02:00
parent a1c08d119e
commit 03a51b7a1e

View File

@ -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 {