Fix inverted check in creating resource surface (flutter/engine#18989)

This commit is contained in:
Robert Ancell
2020-06-12 09:09:06 +12:00
committed by GitHub
parent 47ac7e715b
commit 7c73569ad4

View File

@@ -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;
}