gl-renderer: remove unneeded cast

The variable num is of EGLint type.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
dev
Emil Velikov 7 years ago committed by Daniel Stone
parent df573031d0
commit bcfe397df2
  1. 3
      libweston/gl-renderer.c

@ -2090,8 +2090,7 @@ gl_renderer_query_dmabuf_formats(struct weston_compositor *wc,
*num_formats = 0; *num_formats = 0;
return false; return false;
} }
if (!gr->query_dmabuf_formats(gr->egl_display, num, *formats, if (!gr->query_dmabuf_formats(gr->egl_display, num, *formats, &num)) {
(EGLint*) &num)) {
*num_formats = 0; *num_formats = 0;
free(*formats); free(*formats);
return false; return false;

Loading…
Cancel
Save