[Mesa-dev] [PATCH mesa] egl/x11: misc style fixes
Tapani Pälli
tapani.palli at intel.com
Wed Nov 16 06:42:23 UTC 2016
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 11/16/2016 01:48 AM, Eric Engestrom wrote:
> Signed-off-by: Eric Engestrom <eric at engestrom.ch>
> ---
> src/egl/drivers/dri2/platform_x11.c | 2 +-
> src/egl/drivers/dri2/platform_x11_dri3.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c
> index cf2ce3f..92c4ead 100644
> --- a/src/egl/drivers/dri2/platform_x11.c
> +++ b/src/egl/drivers/dri2/platform_x11.c
> @@ -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);
> diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c b/src/egl/drivers/dri2/platform_x11_dri3.c
> index 475ec05..d3bb451 100644
> --- a/src/egl/drivers/dri2/platform_x11_dri3.c
> +++ b/src/egl/drivers/dri2/platform_x11_dri3.c
> @@ -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,
>
More information about the mesa-dev
mailing list