mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 03:38:03 +02:00
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:
parent
df573031d0
commit
bcfe397df2
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue