Skip to content

Commit

Permalink
🚨 Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Nov 12, 2024
1 parent bb72248 commit af8bc5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Cool/Gpu/OpenGL/Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void Texture::set_image(img::Image const& img, bool need_to_flip_y)
set_image(img.size(), img.channels_count(), img.data(), need_to_flip_y);
}

void Texture::set_image(img::Size const& size, int channels_count, uint8_t const* data, bool need_to_flip_y)
void Texture::set_image(img::Size const& size, size_t channels_count, uint8_t const* data, bool need_to_flip_y)
{
assert(channels_count == 3 || channels_count == 4);
set_image(
Expand Down
2 changes: 1 addition & 1 deletion src/Cool/Gpu/OpenGL/Texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Texture {
void set_size(img::Size const&);
void set_image(img::Image const&, bool need_to_flip_y = false);
/// `channels_count` should be 3 for RGB and 4 for RGBA.
void set_image(img::Size const&, int channels_count, uint8_t const* data, bool need_to_flip_y = false);
void set_image(img::Size const&, size_t channels_count, uint8_t const* data, bool need_to_flip_y = false);
void set_image(img::Size const&, uint8_t const* data, glpp::TextureLayout const&, bool need_to_flip_y = false);
void set_interpolation_mode(glpp::Interpolation interpolation_mode);
void set_wrap_mode(glpp::Wrap wrap_mode);
Expand Down

0 comments on commit af8bc5f

Please sign in to comment.