Add case necessary on 32-bit arm builds. (flutter/engine#79)

Offset is a uint64_t that needs a cast.
This commit is contained in:
Chinmay Garde
2022-03-15 13:27:45 -07:00
committed by Dan Field
parent bdf452ec7f
commit 5285acbdf2

View File

@@ -243,7 +243,7 @@ struct PassBindingsCache {
}
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];