hecrj / wgpu_glyph

A fast text renderer for wgpu (https://github.com/gfx-rs/wgpu)
https://docs.rs/wgpu_glyph
MIT License
450 stars 78 forks source link

Panic when drawing an empty `GlyphBrush` #1

Closed hecrj closed 5 years ago

hecrj commented 5 years ago

This is probably caused by creating a 0-sized buffer.

It should be easy to fix.