diff --git a/src/sdl2_image/lib.rs b/src/sdl2_image/lib.rs index de360856..a577e8e7 100755 --- a/src/sdl2_image/lib.rs +++ b/src/sdl2_image/lib.rs @@ -135,7 +135,7 @@ impl<'a> LoadTexture for Renderer<'a> { if raw == ptr::null() { Err(get_error()) } else { - Ok(Texture::from_ll(raw)) + Ok(Texture::from_ll(self, raw)) } } }