Skip to content

Commit

Permalink
Fix Ameba issues
Browse files Browse the repository at this point in the history
  • Loading branch information
icy-arctic-fox committed Jul 3, 2022
1 parent ab471d4 commit 7591fb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gloop/buffer/bind_target.cr
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ module Gloop
end

# Retrieves the corresponding parameter value for `glGet` for this target.
private def binding_pname # ameba:disable Metrics/CyclomaticComplexity
private def binding_pname
case @target
in Target::Array then LibGL::GetPName::ArrayBufferBinding
in Target::ElementArray then LibGL::GetPName::ElementArrayBufferBinding
Expand Down
2 changes: 1 addition & 1 deletion src/gloop/texture/bind_target.cr
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ module Gloop
end

# Retrieves the corresponding parameter value for `glGet` for this target.
private def binding_pname # ameba:disable Metrics/CyclomaticComplexity
private def binding_pname
case @target
in Texture::Target::Texture1D then LibGL::GetPName::TextureBinding1D
in Texture::Target::Texture2D then LibGL::GetPName::TextureBinding2D
Expand Down

0 comments on commit 7591fb4

Please sign in to comment.