Skip to content

Commit

Permalink
use TriangleStrip
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Aug 14, 2024
1 parent 38e5ebb commit b0acec5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sugarloaf/src/components/rich_text/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use rustc_hash::FxHashMap;
use std::{borrow::Cow, mem};
use text::{Glyph, TextRunStyle};
use wgpu::util::DeviceExt;
use wgpu::{Texture, PrimitiveState};
use wgpu::Texture;

// 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 @@ -246,7 +246,10 @@ impl RichTextBrush {
write_mask: wgpu::ColorWrites::ALL,
})],
}),
primitive: PrimitiveState::default(),
primitive: wgpu::PrimitiveState {
topology: wgpu::PrimitiveTopology::TriangleStrip,
..Default::default()
},
depth_stencil: None,
multisample: wgpu::MultisampleState::default(),
multiview: None,
Expand Down

0 comments on commit b0acec5

Please sign in to comment.