Skip to content

Commit

Permalink
Add case necessary on 32-bit arm builds. (flutter#79)
Browse files Browse the repository at this point in the history
Offset is a uint64_t that needs a cast.
  • Loading branch information
chinmaygarde authored and dnfield committed Apr 27, 2022
1 parent ec1dd96 commit 47cb97c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impeller/renderer/backend/metal/render_pass_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ bool SetBuffer(ShaderStage stage,
}
return true;
}
buffers_map[index] = {buffer, offset};
buffers_map[index] = {buffer, static_cast<size_t>(offset)};
switch (stage) {
case ShaderStage::kVertex:
[encoder_ setVertexBuffer:buffer offset:offset atIndex:index];
Expand Down

0 comments on commit 47cb97c

Please sign in to comment.