[plugins/qpa] Check egl error after a failure of eglMakeCurrent

This hopefully helps to figure out why eglMakeCurrent fails on
hwcomposer platform.
remotes/origin/input-device-dbus
Martin Gräßlin 10 years ago
parent dce3ea6a20
commit 54126e4571
  1. 4
      plugins/qpa/sharingplatformcontext.cpp

@ -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…
Cancel
Save