Avoid setting a swap interval for pbuffers
As per GL_EXT_swap_control this results in BadWindow. Task-number: QTBUG-45705 Change-Id: Ia3e3f66f326d8f6145d82f33f964b0d6996f0959 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>bb10
parent
3e7cf5981a
commit
291eb172e3
|
|
@ -481,7 +481,7 @@ bool QGLXContext::makeCurrent(QPlatformSurface *surface)
|
|||
success = glXMakeContextCurrent(m_display, glxDrawable, glxDrawable, m_context);
|
||||
}
|
||||
|
||||
if (success) {
|
||||
if (success && surfaceClass == QSurface::Window) {
|
||||
int interval = surface->format().swapInterval();
|
||||
QXcbScreen *screen = screenForPlatformSurface(surface);
|
||||
if (interval >= 0 && m_swapInterval != interval && screen) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue