Skip to content

Commit 134a0ba

Browse files
juliohqnot-fl3
authored andcommitted
Fix default filter mode ignored by from_rgba8
1 parent 47918d9 commit 134a0ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/texture.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,6 @@ impl Texture2D {
666666

667667
let ctx = get_context();
668668

669-
t.set_filter(ctx.default_filter_mode);
670-
671669
t
672670
}
673671

@@ -703,6 +701,7 @@ impl Texture2D {
703701
let ctx = get_context();
704702
let texture = ctx.textures.store_texture(texture);
705703
let texture = Texture2D { texture };
704+
texture.set_filter(ctx.default_filter_mode);
706705

707706
ctx.texture_batcher.add_unbatched(&texture);
708707

0 commit comments

Comments
 (0)