Home
Phabricator
Search
Log In
Paste
P186
Masterwork From Distant Lands
Active
Public
Actions
Authored by
davidedmundson
on Apr 2 2018, 6:50 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
commit 8c519a742a264d4ed2b1252953eebbdeeb56adf0 (HEAD -> 5.11)
Author: David Edmundson <davidedmundson@kde.org>
Date: Mon Apr 2 19:50:27 2018 +0100
Get graphics reset status for offscreen surfaces
diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
index 86ca7afa12..c41fe5f186 100644
--- a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
+++ b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
@@ -547,6 +547,10 @@ bool QGLXContext::makeCurrent(QPlatformSurface *surface)
QGLXPbuffer *pbuffer = static_cast<QGLXPbuffer *>(surface);
glxDrawable = pbuffer->pbuffer();
success = glXMakeContextCurrent(m_display, glxDrawable, glxDrawable, m_context);
+ m_lost = false;
+ if (m_getGraphicsResetStatus && m_getGraphicsResetStatus() != GL_NO_ERROR) {
+ m_lost = true;
+ }
}
if (success && surfaceClass == QSurface::Window) {
davidedmundson
edited the content of this paste.
(Show Details)
Apr 2 2018, 6:50 PM
davidedmundson
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
davidedmundson
updated the paste's language from
autodetect
to
autodetect
.
davidedmundson
edited the content of this paste.
(Show Details)
Apr 2 2018, 7:08 PM
Log In to Comment