egl: fix var type
authorEric Engestrom <eric.engestrom@imgtec.com>
Thu, 16 Nov 2017 10:02:15 +0000 (10:02 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Thu, 16 Nov 2017 16:20:44 +0000 (16:20 +0000)
queryImage() takes an `int*`; compiler is warning about the
signed<->unsigned pointer mismatch.

Fixes: 0db36caa192b129cb4f2 "egl/wayland: Add a fallback when fourcc
       query isn't supported"
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
src/egl/drivers/dri2/platform_wayland.c

index 2aecce35f998beda47c3ca77a085e1e53c0d0b80..02b32f988858303a5013c458e2996c5f585ee470 100644 (file)
@@ -676,7 +676,7 @@ get_fourcc(struct dri2_egl_display *dri2_dpy,
            __DRIimage *image, int *fourcc)
 {
    EGLBoolean query;
-   uint32_t dri_format;
+   int dri_format;
 
    query = dri2_dpy->image->queryImage(image, __DRI_IMAGE_ATTRIB_FOURCC,
                                        fourcc);