-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update_buffer_vec
/Deref? sets buffer length to 0
#574
Comments
update_buffer_vec
sets buffer length to 0update_buffer_vec
/Deref? sets buffer length to 0
Here is a snippet of the code: println!("TEST 1 buffer_pos: {:?}, vertices: {:?}",
buffer_pos.get_info().size, vertices.len());
renderer.update_buffer_vec(*buffer_pos, vertices, 0);
println!("TEST 2 buffer_pos: {:?}, vertices: {:?}",
buffer_pos.get_info().size, vertices.len()); Notice |
@bvssvni thanks for the report! |
I think this is a compiler bug. I can produce a very similar bug in snowmew. Using |
I opened rust-lang/rust#22536 |
@csherratt Any idea of how to reduce it to a test case? |
Great, thanks @bvssvni ! |
@bvssvni I got the test case covered ;) |
Fixed in latest |
I suspect something strange happening on
Deref
, but unable to pin point it.See PistonDevelopers/gfx_graphics#135 (comment)
Overriding Gfx locally, and it prints the same size at the end of
update_buffer_vec
, but0
after the function call.The text was updated successfully, but these errors were encountered: