Use less iterator magic to avoid compile error on phone
This commit is contained in:
parent
343e6332d7
commit
2dc42b4a22
|
@ -150,19 +150,14 @@ impl Pipeline {
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
tagged_instances.clear();
|
tagged_instances.clear();
|
||||||
tagged_instances.extend(
|
tagged_instances.reserve((end - i) * 4);
|
||||||
instances[i..end]
|
|
||||||
.iter()
|
for quad in instances[i..end].iter() {
|
||||||
.map(|v| {
|
tagged_instances.push(QuadWithQPos(*quad, pos_map[0]));
|
||||||
[
|
tagged_instances.push(QuadWithQPos(*quad, pos_map[1]));
|
||||||
QuadWithQPos(*v, pos_map[0]),
|
tagged_instances.push(QuadWithQPos(*quad, pos_map[2]));
|
||||||
QuadWithQPos(*v, pos_map[1]),
|
tagged_instances.push(QuadWithQPos(*quad, pos_map[3]));
|
||||||
QuadWithQPos(*v, pos_map[2]),
|
}
|
||||||
QuadWithQPos(*v, pos_map[3]),
|
|
||||||
]
|
|
||||||
})
|
|
||||||
.flatten(),
|
|
||||||
);
|
|
||||||
|
|
||||||
gl.buffer_sub_data_u8_slice(
|
gl.buffer_sub_data_u8_slice(
|
||||||
glow::ARRAY_BUFFER,
|
glow::ARRAY_BUFFER,
|
||||||
|
|
Loading…
Reference in New Issue