Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5ddc122

Browse files
Fix inverted check in creating resource surface (#18989)
1 parent 71fce02 commit 5ddc122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/platform/linux/fl_renderer.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void create_resource_surface(FlRenderer* self, EGLConfig config) {
6868
EGL_NONE};
6969
priv->resource_surface = eglCreatePbufferSurface(priv->egl_display, config,
7070
resource_context_attribs);
71-
if (priv->resource_surface != nullptr) {
71+
if (priv->resource_surface == nullptr) {
7272
g_warning("Failed to create EGL resource surface: %s", get_egl_error());
7373
return;
7474
}

0 commit comments

Comments
 (0)