Skip to content

Commit

Permalink
reset topology
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jun 11, 2024
1 parent cda8ebb commit 104ccf7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sugarloaf/src/components/rich_text/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use fnv::FnvHashMap;
use std::{borrow::Cow, mem};
use text::{Glyph, TextRunStyle, UnderlineStyle};
use wgpu::util::DeviceExt;
use wgpu::{Texture, PrimitiveState, PrimitiveTopology};
use wgpu::{Texture, PrimitiveState};

// Note: currently it's using Indexed drawing instead of Instance drawing could be worth to
// evaluate if would make sense move to instance drawing instead
Expand Down Expand Up @@ -241,10 +241,7 @@ impl RichTextBrush {
write_mask: wgpu::ColorWrites::ALL,
})],
}),
primitive: PrimitiveState {
topology: PrimitiveTopology::TriangleStrip,
..Default::default()
},
primitive: PrimitiveState::default(),
depth_stencil: None,
multisample: wgpu::MultisampleState::default(),
multiview: None,
Expand Down

0 comments on commit 104ccf7

Please sign in to comment.