Better handling of GLX / EGL errors.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 6 Dec 2011 11:55:41 +0000 (12:55 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Dec 2011 10:15:28 +0000 (11:15 +0100)
commitbab5329437e6e80da7e9f30d6422ac53f4f33f6d
tree4003aab018d087c5c7862ba1c6f6e831bf0b4435
parent77fb1c71bf9bb576cfb3d7f5bf887325841ebd75
Better handling of GLX / EGL errors.

If context creation fails, try again without a shared context. Added
QPlatformOpenGLContext::isSharing() and
QPlatformOpenGLContext::isValid() to propagate whether the platform
context was successfully created with or without sharing.

Change-Id: I37080b645f531fd207946441057be6d3f6be3f6e
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/gui/kernel/qopenglcontext.cpp
src/gui/kernel/qplatformopenglcontext_qpa.h
src/platformsupport/eglconvenience/qeglplatformcontext.cpp
src/platformsupport/eglconvenience/qeglplatformcontext_p.h
src/plugins/platforms/xcb/qglxintegration.cpp
src/plugins/platforms/xcb/qglxintegration.h
src/plugins/platforms/xcb/qxcbconnection.cpp