Skip to content

Commit

Permalink
Added copies to avoid a borrowck error
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeyerho committed Jul 12, 2012
1 parent e9f7c1a commit 50c5e96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rendergl.rs
Expand Up @@ -192,8 +192,8 @@ fn render_scene(render_context: RenderContext, &scene: Scene) {
uniform_matrix_4fv(render_context.modelview_uniform, false,
image_layer.common.transform.to_array());

let modelview_matrix = ortho(0.0f32, scene.size.width, scene.size.height, 0.0f32, -10.0f32,
10.0f32);
let modelview_matrix = ortho(0.0f32, copy scene.size.width, copy scene.size.height, 0.0f32,
-10.0f32, 10.0f32);
uniform_matrix_4fv(render_context.projection_uniform, false, modelview_matrix.to_array());

// FIXME: option.get should be pure
Expand Down

0 comments on commit 50c5e96

Please sign in to comment.