diff --git a/plugins/qpa/sharingplatformcontext.cpp b/plugins/qpa/sharingplatformcontext.cpp index 0c5463e29e..6ff6f36483 100644 --- a/plugins/qpa/sharingplatformcontext.cpp +++ b/plugins/qpa/sharingplatformcontext.cpp @@ -111,7 +111,7 @@ GLuint SharingPlatformContext::defaultFramebufferObject(QPlatformSurface *surfac void SharingPlatformContext::create() { - if (config() == 0) { + if (!config()) { qCWarning(KWIN_QPA) << "Did not get an EGL config"; return; }