Kaydet (Commit) c94d60d6 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't use a null display

Change-Id: Iab0a53abd723f0309f40742636315079a4b2c532
üst 9a5bd1cc
......@@ -491,13 +491,18 @@ private:
public:
TempErrorHandler(Display* dpy, errorHandler newErrorHandler):
mdpy(dpy)
{
if (mdpy)
{
XLockDisplay(dpy);
XSync(dpy, false);
oldErrorHandler = XSetErrorHandler(newErrorHandler);
}
}
~TempErrorHandler()
{
if (mdpy)
{
// sync so that we possibly get an XError
glXWaitGL();
......@@ -505,6 +510,7 @@ public:
XSetErrorHandler(oldErrorHandler);
XUnlockDisplay(mdpy);
}
}
};
static bool errorTriggered;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment