[plugins/qpa] Check egl error after a failure of eglMakeCurrent
This hopefully helps to figure out why eglMakeCurrent fails on hwcomposer platform.
This commit is contained in:
parent
dce3ea6a20
commit
54126e4571
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@ bool SharingPlatformContext::makeCurrent(QPlatformSurface *surface)
|
|||
return true;
|
||||
}
|
||||
qCWarning(KWIN_QPA) << "Failed to make context current";
|
||||
EGLint error = eglGetError();
|
||||
if (error != EGL_SUCCESS) {
|
||||
qCWarning(KWIN_QPA) << "EGL error code: " << error;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue