xpra icon
Bug tracker and wiki

Opened 3 years ago

Last modified 4 weeks ago

#1770 assigned enhancement

opengl exception handler function

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: minor Milestone: future
Component: client Version: 2.2.x
Keywords: Cc:


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.

Attachments (1)

gl-reinit.patch (3.7 KB) - added by Antoine Martin 15 months ago.
example glcontext re-init handler

Download all attachments as: .zip

Change History (4)

comment:1 Changed 15 months ago by Antoine Martin

Milestone: 3.04.0
Status: newassigned

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.

Changed 15 months ago by Antoine Martin

Attachment: gl-reinit.patch added

example glcontext re-init handler

comment:2 Changed 8 months ago by Antoine Martin

Milestone: 4.04.1

comment:3 Changed 4 weeks ago by Antoine Martin

Milestone: 4.1future
Note: See TracTickets for help on using tickets.