mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 16:05:59 +01:00
Revert "Move side-effect out of assert statement"
This reverts commit a0afedcd8f
.
This commit is contained in:
parent
a0afedcd8f
commit
b902c2bd7c
1 changed files with 1 additions and 2 deletions
|
@ -25,8 +25,7 @@ static struct wlr_gles2_renderer *gles2_get_renderer(
|
||||||
static struct wlr_gles2_renderer *gles2_get_renderer_in_context(
|
static struct wlr_gles2_renderer *gles2_get_renderer_in_context(
|
||||||
struct wlr_renderer *wlr_renderer) {
|
struct wlr_renderer *wlr_renderer) {
|
||||||
struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer);
|
struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer);
|
||||||
bool current = wlr_egl_is_current(renderer->egl);
|
assert(wlr_egl_is_current(renderer->egl));
|
||||||
assert(current);
|
|
||||||
return renderer;
|
return renderer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue