diff --git a/src/sdl2/render.rs b/src/sdl2/render.rs index 66b04ead..479d3f95 100644 --- a/src/sdl2/render.rs +++ b/src/sdl2/render.rs @@ -197,7 +197,7 @@ impl Renderer { } pub fn get_blend_mode(&self) -> SdlResult { - let blend: c_uint = 0; + let blend = 0; let result = unsafe { ll::SDL_GetRenderDrawBlendMode(self.raw, &blend) == 0 }; if result { Ok(FromPrimitive::from_i64(blend as i64).unwrap()) @@ -590,7 +590,7 @@ impl Texture { } pub fn get_blend_mode(&self) -> SdlResult { - let blend: c_uint = 0; + let blend = 0; let result = unsafe { ll::SDL_GetTextureBlendMode(self.raw, &blend) == 0 }; if result { Ok(FromPrimitive::from_i64(blend as i64).unwrap())