Skip to content

Commit

Permalink
Update renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Nov 7, 2014
1 parent 6ae9782 commit de34ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl DataBuffer {
use std::{mem, slice};
let offset = self.buf.len();
let size = mem::size_of::<T>() * v.len();
self.buf.reserve_additional(size);
self.buf.reserve(size);
unsafe {
self.buf.set_len(offset + size);
slice::raw::buf_as_slice(v.as_ptr() as *const u8, size,
Expand Down

0 comments on commit de34ce9

Please sign in to comment.