Skip to content

Commit

Permalink
glcontext_eagl: fix eagl_make_current() return
Browse files Browse the repository at this point in the history
  • Loading branch information
mbouron committed May 1, 2024
1 parent 21acbc8 commit 27cb423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnopegl/src/backends/gl/glcontext_eagl.m
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ static int eagl_make_current(struct glcontext *ctx, int current)
ret = [EAGLContext setCurrentContext:nil];
}

return ret;
return ret ? 0 : NGL_ERROR_EXTERNAL;
}

static void eagl_swap_buffers(struct glcontext *ctx)
Expand Down

0 comments on commit 27cb423

Please sign in to comment.