aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-13 13:54:09 -0400
committerDrew DeVault <sir@cmpwn.com>2018-07-13 13:54:09 -0400
commita0afedcd8fbeb2013252e629d524aa83cdd9326e (patch)
treea537554d1b30981b6d1d840d22aa5ffc7f4837d1
parent3ae423b0e35fb35cc4cee972c4f29f020efad877 (diff)
Move side-effect out of assert statement
-rw-r--r--render/gles2/renderer.c3
1 files changed, 2 insertions, 1 deletions
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;
}