equal
deleted
inserted
replaced
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); |