diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-10-13 12:21:51 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-10-19 12:56:39 (GMT) |
commit | 0d0cba294980c5fbb26a2fd3e930c94606e93d03 (patch) | |
tree | b48b45dc8f4014d519950b351b6b6680dfc59f04 /src/opengl/qgl_x11egl.cpp | |
parent | 22b9079040ae0d4f35781509fa6aea7e38ac47bb (diff) | |
download | Qt-0d0cba294980c5fbb26a2fd3e930c94606e93d03.zip Qt-0d0cba294980c5fbb26a2fd3e930c94606e93d03.tar.gz Qt-0d0cba294980c5fbb26a2fd3e930c94606e93d03.tar.bz2 |
Add a new QX11GLPixmapData which renders to X pixmaps using GL
Enable it by setting QT_USE_X11GL_PIXMAPS environment variable while
using the -graphicssystem opengl
Diffstat (limited to 'src/opengl/qgl_x11egl.cpp')
-rw-r--r-- | src/opengl/qgl_x11egl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/opengl/qgl_x11egl.cpp b/src/opengl/qgl_x11egl.cpp index 971a660..fb08741 100644 --- a/src/opengl/qgl_x11egl.cpp +++ b/src/opengl/qgl_x11egl.cpp @@ -513,8 +513,11 @@ bool Q_OPENGL_EXPORT qt_createEGLSurfaceForPixmap(QPixmapData* pmd, bool readOnl pixmapConfig, (EGLNativePixmapType) pixmapData->handle(), pixmapAttribs.properties()); +// qDebug("qt_createEGLSurfaceForPixmap() created surface 0x%x for pixmap 0x%x", +// pixmapSurface, pixmapData->handle()); if (pixmapSurface == EGL_NO_SURFACE) { - qWarning("Failed to create a pixmap surface using config %d", (int)pixmapConfig); + qWarning() << "Failed to create a pixmap surface using config" << (int)pixmapConfig + << ":" << QEglContext::errorString(eglGetError()); return false; } |