egl/x11: misc style fixes
authorEric Engestrom <eric@engestrom.ch>
Tue, 15 Nov 2016 23:48:52 +0000 (23:48 +0000)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 17 Nov 2016 07:32:48 +0000 (09:32 +0200)
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/drivers/dri2/platform_x11.c
src/egl/drivers/dri2/platform_x11_dri3.c

index cf2ce3f8952f913e1aec888f378f45f70377433e..92c4eade195a1aa3cc068ff0102698b084f78f9a 100644 (file)
@@ -892,7 +892,7 @@ dri2_x11_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw)
           return EGL_TRUE;
       }
       /* Swap failed with a window drawable. */
-      _eglError(EGL_BAD_NATIVE_WINDOW, __FUNCTION__);
+      _eglError(EGL_BAD_NATIVE_WINDOW, __func__);
       return EGL_FALSE;
    } else {
       assert(dri2_dpy->swrast);
index 475ec05a9c2973dfd3999e9461bbbd0ef69aee23..d3bb4512d5f467c0a1cd5fad5ca32d44a7e6699f 100644 (file)
@@ -407,7 +407,7 @@ dri3_swap_buffers(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw)
 
    /* No-op for a pixmap or pbuffer surface */
    if (draw->Type == EGL_PIXMAP_BIT || draw->Type == EGL_PBUFFER_BIT)
-      return 0;
+      return EGL_FALSE;
 
    return loader_dri3_swap_buffers_msc(&dri3_surf->loader_drawable,
                                        0, 0, 0, 0,