Skip to content

Commit

Permalink
add error handler again
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-rauch committed Jul 26, 2018
1 parent 850a23a commit 893c862
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/display/device/display_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ static int ctxErrorHandler( ::Display * /*dpy*/, ::XErrorEvent * ev )

X11GlContext::X11GlContext(std::shared_ptr<X11Display>& xdisplay) : display(xdisplay)
{

// Install an X error handler so the application won't exit if GL 3.0
// context allocation fails. Handler is global and shared across all threads.
ctxErrorOccurred = false;
XSetErrorHandler(&ctxErrorHandler);

EGLint ignore;
EGLBoolean ok;

Expand Down

0 comments on commit 893c862

Please sign in to comment.