Skip to content

Commit

Permalink
Merge pull request #65 from bvssvni/master
Browse files Browse the repository at this point in the history
Fixed error message
  • Loading branch information
bvssvni committed Oct 17, 2014
2 parents c6f9b7a + b79ee86 commit 4a815e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shader_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub fn compile_shader(
gl::GetShaderInfoLog(
shader,
len,
ptr::mut_null(),
ptr::null_mut(),
buf.as_mut_ptr() as *mut GLchar
);

Expand Down
2 changes: 1 addition & 1 deletion src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Texture {

match img.color() {
image::RGBA(8) => {},
c => fail!("Unsupported color type {} in png", c),
c => return Err(format!("Unsupported color type {}", c)),
};

let (width, height) = img.dimensions();
Expand Down

0 comments on commit 4a815e0

Please sign in to comment.