~ubuntu-branches/ubuntu/trusty/libavg/trusty

« back to all changes in this revision

Viewing changes to src/graphics/OGLHelper.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2011-10-09 23:30:53 UTC
  • Revision ID: james.westby@ubuntu.com-20111009233053-x1e2z7tndzcf385o
Tags: 1.5.4-0ubuntu4
Work around segfault when using fglrx (LP: #815922)

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
    while (p < end) {
170
170
        int n = strcspn(p, " ");
171
171
        if ((extNameLen == n) && (strncmp(extName, p, n) == 0)) {
172
 
            XCloseDisplay(display);
 
172
// If we close the display connection on some drivers (at least fglrx/Ubuntu 11.04),
 
173
// libavg crashes soon afterwards.
 
174
//            XCloseDisplay(display);
173
175
            return true;
174
176
        }
175
177
        p += (n + 1);
176
178
    }
177
 
    XCloseDisplay(display);
 
179
//    XCloseDisplay(display);
178
180
    return false;
179
181
#endif
180
182
}