mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 06:05:58 +01:00
render/gles2: drop unnecessary cast
We can just refer to the struct field here.
This commit is contained in:
parent
214df8eda0
commit
c2c536de03
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ static struct wlr_render_timer *gles2_render_timer_create(struct wlr_renderer *w
|
|||
renderer->procs.glGenQueriesEXT(1, &timer->id);
|
||||
wlr_egl_restore_context(&prev_ctx);
|
||||
|
||||
return (struct wlr_render_timer *)timer;
|
||||
return &timer->base;
|
||||
}
|
||||
|
||||
static int gles2_get_render_time(struct wlr_render_timer *wlr_timer) {
|
||||
|
|
Loading…
Reference in a new issue