mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2025-02-16 17:12:29 +00:00
Minor fix in update_buffer (#745)
This commit is contained in:
parent
66303c142d
commit
3b8657869a
@ -1046,7 +1046,7 @@ impl<P> AutoCommandBufferBuilder<P> {
|
||||
check_update_buffer(self.device(), &buffer, &data)?;
|
||||
|
||||
let size_of_data = mem::size_of_val(&data);
|
||||
if buffer.size() > size_of_data {
|
||||
if buffer.size() >= size_of_data {
|
||||
self.inner.update_buffer(buffer, data);
|
||||
} else {
|
||||
unimplemented!() // TODO:
|
||||
|
Loading…
Reference in New Issue
Block a user