Fix EGL config - X visual matching for i.MX6
Task-number: QTBUG-44290 Change-Id: I06cbb169803aa8a06ea310651def1f3582194c8e Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>bb10
parent
ce97f37bff
commit
e7bd18f156
|
|
@ -75,6 +75,12 @@ VisualID QXlibEglIntegration::getCompatibleVisualId(Display *display, EGLDisplay
|
|||
XFree(chosenVisualInfo);
|
||||
return visualId;
|
||||
}
|
||||
// Skip also for i.MX6 where 565 visuals are suggested for the default 444 configs and it works just fine.
|
||||
const char *vendor = eglQueryString(eglDisplay, EGL_VENDOR);
|
||||
if (vendor && strstr(vendor, "Vivante")) {
|
||||
XFree(chosenVisualInfo);
|
||||
return visualId;
|
||||
}
|
||||
|
||||
int visualRedSize = qPopulationCount(chosenVisualInfo->red_mask);
|
||||
int visualGreenSize = qPopulationCount(chosenVisualInfo->green_mask);
|
||||
|
|
|
|||
Loading…
Reference in New Issue