File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
sugarloaf/src/components/rich_text Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use rustc_hash::FxHashMap;
16
16
use std:: { borrow:: Cow , mem} ;
17
17
use text:: { Glyph , TextRunStyle } ;
18
18
use wgpu:: util:: DeviceExt ;
19
- use wgpu:: { Texture , PrimitiveState } ;
19
+ use wgpu:: Texture ;
20
20
21
21
// Note: currently it's using Indexed drawing instead of Instance drawing could be worth to
22
22
// evaluate if would make sense move to instance drawing instead
@@ -246,7 +246,10 @@ impl RichTextBrush {
246
246
write_mask : wgpu:: ColorWrites :: ALL ,
247
247
} ) ] ,
248
248
} ) ,
249
- primitive : PrimitiveState :: default ( ) ,
249
+ primitive : wgpu:: PrimitiveState {
250
+ topology : wgpu:: PrimitiveTopology :: TriangleStrip ,
251
+ ..Default :: default ( )
252
+ } ,
250
253
depth_stencil : None ,
251
254
multisample : wgpu:: MultisampleState :: default ( ) ,
252
255
multiview : None ,
You can’t perform that action at this time.
0 commit comments