aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-13 15:46:54 -0400
committerDrew DeVault <sir@cmpwn.com>2018-07-13 15:46:54 -0400
commitb902c2bd7c012363aad62d414622b2a1b81d5cb5 (patch)
treeb3c01080ead17997e8fe186d9bdeeabc79547c4c /render
parenta0afedcd8fbeb2013252e629d524aa83cdd9326e (diff)
Revert "Move side-effect out of assert statement"
This reverts commit a0afedcd8fbeb2013252e629d524aa83cdd9326e.
Diffstat (limited to 'render')
-rw-r--r--render/gles2/renderer.c3
1 files changed, 1 insertions, 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;
}