Skip to content

Commit

Permalink
cast uniform location to uint32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
watasuke102 committed Dec 4, 2024
1 parent ca8e149 commit d6ee6e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client/gl-base-technique.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ GlBaseTechnique::Commit()

auto [iterator, newly_inserted] =
rendering->uniform_variables.insert(
std::pair<uint32_t, UniformVariable>{location, {}});
std::pair<uint32_t, UniformVariable>{
static_cast<uint32_t>(location), {}});

if (newly_inserted) {
(*iterator).second.location = location;
Expand Down Expand Up @@ -301,7 +302,7 @@ void
GlBaseTechnique::SetupTextures(GLuint program_id)
{
for (auto it = rendering_->texture_bindings.begin();
it != rendering_->texture_bindings.end();) {
it != rendering_->texture_bindings.end();) {
auto& texture_binding = (*it).second;
uint32_t binding = (*it).first;

Expand Down

0 comments on commit d6ee6e9

Please sign in to comment.