diff options
author | Reuben Dowle <reuben.dowle@navico.com> | 2011-09-19 11:04:50 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-09-19 11:04:50 (GMT) |
commit | 67a1b5e50c1cc90e9c03d9f4cadc9912f6880e15 (patch) | |
tree | c576a499fa9b8b8ee298052e97e7727ad5081006 /src/plugins/platforms/xcb | |
parent | 035a05e498568cacbc53017d6f7ee6691c050edb (diff) | |
download | Qt-67a1b5e50c1cc90e9c03d9f4cadc9912f6880e15.zip Qt-67a1b5e50c1cc90e9c03d9f4cadc9912f6880e15.tar.gz Qt-67a1b5e50c1cc90e9c03d9f4cadc9912f6880e15.tar.bz2 |
Allow shared EGL contexts for xcb and xlib platforms
Merge-request: 1331
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xcb')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index 0a02c7e..ed88138 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -516,7 +516,7 @@ QPlatformGLContext *QXcbWindow::glContext() const EGLSurface eglSurface = eglCreateWindowSurface(display,config,(EGLNativeWindowType)m_window,0); QXcbWindow *that = const_cast<QXcbWindow *>(this); - that->m_context = new QEGLPlatformContext(display, config, eglContextAttrs.data(), eglSurface, EGL_OPENGL_ES_API); + that->m_context = new QEGLPlatformContext(display, config, eglContextAttrs.data(), eglSurface, EGL_OPENGL_ES_API, static_cast<QEGLPlatformContext *>(widget()->platformWindowFormat().sharedGLContext())); #elif defined(XCB_USE_DRI2) QXcbWindow *that = const_cast<QXcbWindow *>(this); that->m_context = new QDri2Context(that); |