Lines 652-658
void QGLXContext::queryDummyContext()
Link Here
|
652 |
oldSurface = oldContext->surface(); |
652 |
oldSurface = oldContext->surface(); |
653 |
|
653 |
|
654 |
QScopedPointer<QSurface> surface; |
654 |
QScopedPointer<QSurface> surface; |
655 |
const char *glxvendor = glXGetClientString(glXGetCurrentDisplay(), GLX_VENDOR); |
655 |
Display *display = glXGetCurrentDisplay(); |
|
|
656 |
const char *glxvendor = 0; |
657 |
if (display) |
658 |
glxvendor = glXGetClientString(display, GLX_VENDOR); |
656 |
if (glxvendor && !strcmp(glxvendor, "ATI")) { |
659 |
if (glxvendor && !strcmp(glxvendor, "ATI")) { |
657 |
QWindow *window = new QWindow; |
660 |
QWindow *window = new QWindow; |
658 |
window->resize(64, 64); |
661 |
window->resize(64, 64); |