Skip to content

Commit

Permalink
Fix missed string replace
Browse files Browse the repository at this point in the history
  • Loading branch information
evahop committed Mar 15, 2023
1 parent 9251c1c commit 5a12110
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/back/glsl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2836,17 +2836,17 @@ impl<'a, W: Write> Writer<'a, W> {
use crate::{DerivativeAxis as Axis, DerivativeControl as Ctrl};
let fun_name = if self.options.version.supports_derivative_control() {
match axis {
Axis::X(hint) => match hint {
Axis::X(ctrl) => match ctrl {
Ctrl::Coarse => "dFdxCoarse",
Ctrl::Fine => "dFdxFine",
_ => "dFdx",
},
Axis::Y(hint) => match hint {
Axis::Y(ctrl) => match ctrl {
Ctrl::Coarse => "dFdyCoarse",
Ctrl::Fine => "dFdyFine",
_ => "dFdy",
},
Axis::Width(hint) => match hint {
Axis::Width(ctrl) => match ctrl {
Ctrl::Coarse => "fwidthCoarse",
Ctrl::Fine => "fwidthFine",
_ => "fwidth",
Expand Down

0 comments on commit 5a12110

Please sign in to comment.