src/gui/egl/qegl_x11.cpp
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   163         int matchingCount = 0;
   163         int matchingCount = 0;
   164         chosenVisualInfo = XGetVisualInfo(X11->display, VisualIDMask, &visualInfoTemplate, &matchingCount);
   164         chosenVisualInfo = XGetVisualInfo(X11->display, VisualIDMask, &visualInfoTemplate, &matchingCount);
   165         if (chosenVisualInfo) {
   165         if (chosenVisualInfo) {
   166             // Skip size checks if implementation supports non-matching visual
   166             // Skip size checks if implementation supports non-matching visual
   167             // and config (http://bugreports.qt.nokia.com/browse/QTBUG-9444).
   167             // and config (http://bugreports.qt.nokia.com/browse/QTBUG-9444).
   168             if (QEgl::hasExtension("EGL_NV_post_convert_replication"))
   168             if (QEgl::hasExtension("EGL_NV_post_convert_rounding"))
   169                 return visualId;
   169                 return visualId;
   170 
   170 
   171             int visualRedSize = countBits(chosenVisualInfo->red_mask);
   171             int visualRedSize = countBits(chosenVisualInfo->red_mask);
   172             int visualGreenSize = countBits(chosenVisualInfo->green_mask);
   172             int visualGreenSize = countBits(chosenVisualInfo->green_mask);
   173             int visualBlueSize = countBits(chosenVisualInfo->blue_mask);
   173             int visualBlueSize = countBits(chosenVisualInfo->blue_mask);