Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.91k stars 164 forks source link

opengl exception handler function #1770

Open totaam opened 6 years ago

totaam commented 6 years ago

Issue migrated from trac ticket # 1770

component: client | priority: minor

2018-02-17 07:14:18: antoine created the issue


Follow up from #1769: register a callback function on the opengl context object to reset the context when we encounter an error, so that later screen updates will succeed.

totaam commented 5 years ago

2019-07-29 18:10:29: antoine changed status from new to assigned

totaam commented 5 years ago

2019-07-29 18:10:29: antoine commented


Not easy. There are two parts: the window backing context and the underlying opengl context (ie: GLX context). We can't re-initialize the latter without also re-initializing the former. Another problem is that some paint functions already catch and handle exceptions, so the code would need to be added to each one of those rather than doing it generically in the gl-context object.

totaam commented 5 years ago

2019-07-29 18:12:10: antoine uploaded file gl-reinit.patch (3.7 KiB)

example glcontext re-init handler

totaam commented 3 years ago

See also #2467