Skip to content

Commit

Permalink
metal: fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
not-fl3 committed Sep 2, 2023
1 parent f4626bd commit 68d95f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphics/metal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,13 +454,13 @@ impl RenderingBackend for MetalContext {
fn texture_set_wrap(&mut self, texture: TextureId, wrap_x: TextureWrap, wrap_y: TextureWrap) {
let texture = self.textures.get_mut(texture);

let wrap_s = match wrap {
let wrap_s = match wrap_x {
TextureWrap::Repeat => MTLSamplerAddressMode::Repeat,
TextureWrap::Mirror => MTLSamplerAddressMode::MirrorRepeat,
TextureWrap::Clamp => MTLSamplerAddressMode::ClampToEdge,
};

let wrap_t = match wrap {
let wrap_t = match wrap_y {
TextureWrap::Repeat => MTLSamplerAddressMode::Repeat,
TextureWrap::Mirror => MTLSamplerAddressMode::MirrorRepeat,
TextureWrap::Clamp => MTLSamplerAddressMode::ClampToEdge,
Expand Down

0 comments on commit 68d95f7

Please sign in to comment.