1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-21 11:50:42 +03:00
wezterm/window
Wez Furlong 8f1f1a65ea window: handle opengl context loss on windows.
With this commit, we now survive a reinstall or upgrade of the nvidia
drivers on my Windows sytem without crashing.

This commit allows notifying the application of the context loss
so the application can either try to reinit opengl or open a new
window as a replacement and init opengl there.

I've not had success at reinitializing opengl after a driver upgrade;
it seems to be persistently stuck in a state where it fails to allocate
a vertex buffer.

SO, the state we have now is that we try to reinit opengl on a new
window, and if that fails, leave it set to the software renderer.

This isn't a perfect UX, but it is better than terminating!

refs: https://github.com/wez/wezterm/issues/156
2020-06-16 21:17:48 -07:00
..
examples window: fixup tests for opengl init changes 2020-06-15 12:33:30 -07:00
src window: handle opengl context loss on windows. 2020-06-16 21:17:48 -07:00
build.rs window: handle opengl context loss on windows. 2020-06-16 21:17:48 -07:00
Cargo.toml window: glium and gl_generator version bump 2020-06-14 21:24:54 -07:00