Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adapt to rust changes
  • Loading branch information
Tuncer Ayaz committed Aug 5, 2012
1 parent fa4355e commit b667778
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rendergl.rs
Expand Up @@ -71,7 +71,7 @@ fn load_shader(source_string: ~str, shader_type: GLenum) -> GLuint {
fail ~"failed to compile shader";
}

ret shader_id;
return shader_id;
}

class RenderContext {
Expand Down Expand Up @@ -118,7 +118,7 @@ fn init_render_context() -> RenderContext {

enable(TEXTURE_2D);

ret RenderContext(program);
return RenderContext(program);
}

fn init_buffers() -> (GLuint, GLuint) {
Expand Down Expand Up @@ -147,13 +147,13 @@ fn init_buffers() -> (GLuint, GLuint) {

buffer_data(ARRAY_BUFFER, vertices, STATIC_DRAW);

ret (triangle_vertex_buffer, texture_coord_buffer);
return (triangle_vertex_buffer, texture_coord_buffer);
}

fn create_texture_for_image_if_necessary(image: @Image) {
alt image.texture {
none {}
some(_) { ret; /* Nothing to do. */ }
some(_) { return; /* Nothing to do. */ }
}

#debug("making texture");
Expand Down

0 comments on commit b667778

Please sign in to comment.