Skip to content

Commit 38e5ebb

Browse files
committed
reset topology
1 parent ccfa4a3 commit 38e5ebb

File tree

1 file changed

+2
-5
lines changed
  • sugarloaf/src/components/rich_text

1 file changed

+2
-5
lines changed

sugarloaf/src/components/rich_text/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use rustc_hash::FxHashMap;
1616
use std::{borrow::Cow, mem};
1717
use text::{Glyph, TextRunStyle};
1818
use wgpu::util::DeviceExt;
19-
use wgpu::{Texture, PrimitiveState, PrimitiveTopology};
19+
use wgpu::{Texture, PrimitiveState};
2020

2121
// Note: currently it's using Indexed drawing instead of Instance drawing could be worth to
2222
// evaluate if would make sense move to instance drawing instead
@@ -246,10 +246,7 @@ impl RichTextBrush {
246246
write_mask: wgpu::ColorWrites::ALL,
247247
})],
248248
}),
249-
primitive: PrimitiveState {
250-
topology: PrimitiveTopology::TriangleStrip,
251-
..Default::default()
252-
},
249+
primitive: PrimitiveState::default(),
253250
depth_stencil: None,
254251
multisample: wgpu::MultisampleState::default(),
255252
multiview: None,

0 commit comments

Comments
 (0)