1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 23:21:08 +03:00
wezterm/wezterm-gui
Wez Furlong 503d3df368 Constrain texture size to that supported by gpu
OpenGL will silently let us allocate a texture larger than the GPU can
bind to a sampler, reporting the error status out of band and leaving
the display in a perma-broken state.

This commit deliberately checks against the max texture size and raises
an error in that case.

The recovery story isn't perfect, but at least the texture remains
usable, so the user can clear the screen and still be able to see glyphs
afterwards.

refs: https://github.com/wez/wezterm/issues/879
2021-08-01 10:42:57 -07:00
..
src Constrain texture size to that supported by gpu 2021-08-01 10:42:57 -07:00
build.rs deps: windows 0.9 -> 0.11 2021-06-16 08:29:09 -07:00
Cargo.toml deps: upgrade open 1.4 -> 2.0 2021-07-26 08:15:02 -07:00