summaryrefslogtreecommitdiffstats
path: root/glow/src
diff options
context:
space:
mode:
Diffstat (limited to 'glow/src')
-rw-r--r--glow/src/backend.rs1
-rw-r--r--glow/src/quad/compatibility.rs9
2 files changed, 1 insertions, 9 deletions
diff --git a/glow/src/backend.rs b/glow/src/backend.rs
index f63135a4..78d4229e 100644
--- a/glow/src/backend.rs
+++ b/glow/src/backend.rs
@@ -173,7 +173,6 @@ impl Backend {
glow_glyph::VerticalAlign::Bottom
}
}),
- ..Default::default()
};
self.text_pipeline.queue(text);
diff --git a/glow/src/quad/compatibility.rs b/glow/src/quad/compatibility.rs
index 7224e206..eb3fb7e0 100644
--- a/glow/src/quad/compatibility.rs
+++ b/glow/src/quad/compatibility.rs
@@ -116,14 +116,7 @@ impl Pipeline {
// TODO: Remove this allocation (or allocate only when needed)
let indices: Vec<i32> = (0..instances.len().min(MAX_QUADS) as i32)
.flat_map(|i| {
- [
- 0 + i * 4,
- 1 + i * 4,
- 2 + i * 4,
- 2 + i * 4,
- 1 + i * 4,
- 3 + i * 4,
- ]
+ [i * 4, 1 + i * 4, 2 + i * 4, 2 + i * 4, 1 + i * 4, 3 + i * 4]
})
.cycle()
.take(instances.len() * 6)