summaryrefslogtreecommitdiffstats
path: root/wgpu/src/renderer/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/renderer/text.rs')
-rw-r--r--wgpu/src/renderer/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/renderer/text.rs b/wgpu/src/renderer/text.rs
index 8fbade4e..606ebe9f 100644
--- a/wgpu/src/renderer/text.rs
+++ b/wgpu/src/renderer/text.rs
@@ -47,7 +47,7 @@ impl text::Renderer for Renderer {
let (width, height) = if let Some(bounds) =
glyph_brush.borrow_mut().glyph_bounds(&text)
{
- (bounds.width(), bounds.height())
+ (bounds.width().round(), bounds.height().round())
} else {
(0.0, 0.0)
};