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>
This commit is contained in:
committed by
Daniel Stone
parent
df573031d0
commit
bcfe397df2
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user