diff options
author | Simon Ser <contact@emersion.fr> | 2023-07-11 20:15:45 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-07-11 20:15:45 +0200 |
commit | c2c536de034cc27d3a15001cc478f5a327b8f910 (patch) | |
tree | e0e2a61d0336d79b8cd82acbdbf7ed1226f81443 /render | |
parent | 214df8eda07d18b032abfcf525c8344e077c0c7e (diff) |
render/gles2: drop unnecessary cast
We can just refer to the struct field here.
Diffstat (limited to 'render')
-rw-r--r-- | render/gles2/renderer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 6631348e..9cbc646e 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -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) { |