From e7bd18f156e508969cc536c0f0b8e3c2c3c75c47 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 18 Mar 2015 11:03:39 +0100 Subject: Fix EGL config - X visual matching for i.MX6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-44290 Change-Id: I06cbb169803aa8a06ea310651def1f3582194c8e Reviewed-by: Jørgen Lind --- src/platformsupport/eglconvenience/qxlibeglintegration.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platformsupport/eglconvenience/qxlibeglintegration.cpp b/src/platformsupport/eglconvenience/qxlibeglintegration.cpp index b467b7721f..73661f33bd 100644 --- a/src/platformsupport/eglconvenience/qxlibeglintegration.cpp +++ b/src/platformsupport/eglconvenience/qxlibeglintegration.cpp @@ -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); -- cgit v1.2.3