Skip to content

Commit f9f9adb

Browse files
authored
Merge pull request #80 from Bobo1239/chrome-fixes
Make wgpu_glyph work on Chrome
2 parents 215f3be + 3a9ecba commit f9f9adb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pipeline.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ fn build<D>(
247247
visibility: wgpu::ShaderStages::FRAGMENT,
248248
ty: wgpu::BindingType::Texture {
249249
sample_type: wgpu::TextureSampleType::Float {
250-
filterable: false,
250+
filterable: true,
251251
},
252252
view_dimension: wgpu::TextureViewDimension::D2,
253253
multisampled: false,
@@ -308,6 +308,7 @@ fn build<D>(
308308
primitive: wgpu::PrimitiveState {
309309
topology: wgpu::PrimitiveTopology::TriangleStrip,
310310
front_face: wgpu::FrontFace::Cw,
311+
strip_index_format: Some(wgpu::IndexFormat::Uint16),
311312
..Default::default()
312313
},
313314
depth_stencil,

0 commit comments

Comments
 (0)