Skip to content

Commit

Permalink
very small change to how we invoke texture creation
Browse files Browse the repository at this point in the history
  • Loading branch information
profan committed Nov 12, 2023
1 parent 549382f commit c90c249
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,9 @@ fn resolve_texture_format(format: paint::TextureFormat) -> TextureFormat {
fn make_texture(ctx: &mut GraphicsContext, texture: &paint::Texture) -> Texture {
let texture_format = resolve_texture_format(texture.format());
let dimensions = texture.size();
Texture::new(
Texture::from_data_and_format(
ctx,
TextureAccess::Static,
Some(texture.data()),
texture.data(),
TextureParams {
format: texture_format,
wrap: TextureWrap::Clamp,
Expand Down

0 comments on commit c90c249

Please sign in to comment.