From b902c2bd7c012363aad62d414622b2a1b81d5cb5 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 13 Jul 2018 15:46:54 -0400 Subject: Revert "Move side-effect out of assert statement" This reverts commit a0afedcd8fbeb2013252e629d524aa83cdd9326e. --- render/gles2/renderer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 548dd597..27c16e52 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -25,8 +25,7 @@ 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); - bool current = wlr_egl_is_current(renderer->egl); - assert(current); + assert(wlr_egl_is_current(renderer->egl)); return renderer; } -- cgit v1.2.3