We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d92d485 commit b9c37f2Copy full SHA for b9c37f2
src/graphics/vertex_buffer.rs
@@ -114,7 +114,7 @@ impl VertexBuffer {
114
/// * other - Instance to swap with
115
pub fn swap(&mut self, other: &mut VertexBuffer) {
116
unsafe {
117
- sfVertexBuffer_swap(self.vertex_buffer.as_ptr(), other.vertex_buffer.as_ptr());
+ sfVertexBuffer_swap(self.vertex_buffer.as_mut(), other.vertex_buffer.as_mut());
118
}
119
120
0 commit comments