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 8 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;
return false;
}
if (!gr->query_dmabuf_formats(gr->egl_display, num, *formats,
(EGLint*) &num)) {
if (!gr->query_dmabuf_formats(gr->egl_display, num, *formats, &num)) {
*num_formats = 0;
free(*formats);
return false;

Loading…
Cancel
Save