gl-renderer: Fix sign confusion in format/modifier query

Signed and unsigned integers are not the same thing.

Signed-off-by: Daniel Stone <daniels@collabora.com>
dev
Daniel Stone 3 years ago
parent 348e3a9abd
commit eeaaf6b9b0
  1. 4
      libweston/renderer-gl/gl-renderer.c

@ -2862,8 +2862,8 @@ populate_supported_formats(struct weston_compositor *ec,
struct weston_drm_format *fmt; struct weston_drm_format *fmt;
int *formats = NULL; int *formats = NULL;
uint64_t *modifiers = NULL; uint64_t *modifiers = NULL;
unsigned int num_formats, num_modifiers; int num_formats, num_modifiers;
unsigned int i, j; int i, j;
int ret = 0; int ret = 0;
/* Use EGL_EXT_image_dma_buf_import_modifiers to query the /* Use EGL_EXT_image_dma_buf_import_modifiers to query the

Loading…
Cancel
Save