diff options
author | Dan Cape <dcape@qnx.com> | 2015-06-19 16:26:49 -0400 |
---|---|---|
committer | Rafael Roquetto <rafael.roquetto@kdab.com> | 2016-03-22 12:18:01 +0000 |
commit | 15c42ebccb45fcfd2d7d0c6a52af1f81eb1eb706 (patch) | |
tree | f7b5d151571975f3cf821d38d67eed32534f453c /src | |
parent | 45ca387cb03f3a3e49ed7f125b05a864645c459c (diff) | |
download | qtmultimedia-15c42ebccb45fcfd2d7d0c6a52af1f81eb1eb706.tar.gz |
QNX: Fix video playback on VMWare
Mark eglImage as not supported on VMWare since that path requires
that the image data be in GPU accessible memory which is not the
case for video
Change-Id: I2ea1ec52842adf0bc1ca39c882e6771e6a992c65
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/qnx/common/windowgrabber.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/qnx/common/windowgrabber.cpp b/src/plugins/qnx/common/windowgrabber.cpp index c16e38206..39d87c781 100644 --- a/src/plugins/qnx/common/windowgrabber.cpp +++ b/src/plugins/qnx/common/windowgrabber.cpp @@ -40,6 +40,7 @@ #include <qpa/qplatformnativeinterface.h> #include <QOpenGLContext> +#include <QOpenGLFunctions> #ifdef Q_OS_BLACKBERRY #include <bps/event.h> @@ -343,6 +344,9 @@ void WindowGrabber::checkForEglImageExtension() m_eglImageSupported = m_context->hasExtension(QByteArrayLiteral("GL_OES_EGL_image")) && eglExtensions.contains(QByteArrayLiteral("EGL_KHR_image")); + if (strstr(reinterpret_cast<const char*>(glGetString(GL_VENDOR)), "VMware")) + m_eglImageSupported = false; + m_eglImageCheck = true; } |