From a0afedcd8fbeb2013252e629d524aa83cdd9326e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 13 Jul 2018 13:54:09 -0400 Subject: Move side-effect out of assert statement --- render/gles2/renderer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/gles2') diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 27c16e52..548dd597 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -25,7 +25,8 @@ static struct wlr_gles2_renderer *gles2_get_renderer( static struct wlr_gles2_renderer *gles2_get_renderer_in_context( struct wlr_renderer *wlr_renderer) { struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer); - assert(wlr_egl_is_current(renderer->egl)); + bool current = wlr_egl_is_current(renderer->egl); + assert(current); return renderer; } -- cgit v1.2.3