diff --git a/shell/platform/linux/fl_renderer.cc b/shell/platform/linux/fl_renderer.cc index 27392495dab6f..6f8d4b61fe99a 100644 --- a/shell/platform/linux/fl_renderer.cc +++ b/shell/platform/linux/fl_renderer.cc @@ -68,7 +68,7 @@ static void create_resource_surface(FlRenderer* self, EGLConfig config) { EGL_NONE}; priv->resource_surface = eglCreatePbufferSurface(priv->egl_display, config, resource_context_attribs); - if (priv->resource_surface != nullptr) { + if (priv->resource_surface == nullptr) { g_warning("Failed to create EGL resource surface: %s", get_egl_error()); return; }