Skip to content

Commit

Permalink
remove unused get_context call
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrgani authored and not-fl3 committed Oct 13, 2024
1 parent c0e50f3 commit 6d72a37
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,11 +662,7 @@ impl Texture2D {
let height = img.height() as u16;
let bytes = img.into_raw();

let t = Self::from_rgba8(width, height, &bytes);

let ctx = get_context();

t
Self::from_rgba8(width, height, &bytes)
}

/// Creates a Texture2D from an [Image].
Expand Down

0 comments on commit 6d72a37

Please sign in to comment.