mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
Move side-effect out of assert statement
This commit is contained in:
parent
3ae423b0e3
commit
a0afedcd8f
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue