[Mesa-dev] [PATCH mesa] egl/wayland: avoid double-return

Eric Engestrom eric at engestrom.ch
Tue Nov 15 23:46:40 UTC 2016


Signed-off-by: Eric Engestrom <eric at engestrom.ch>
---
 src/egl/drivers/dri2/platform_wayland.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index 4fd4289..64eb4ef 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -693,9 +693,11 @@ try_damage_buffer(struct dri2_egl_surface *dri2_surf,
                                rect[2], rect[3]);
    }
    return EGL_TRUE;
-#endif
+#else
    return EGL_FALSE;
+#endif
 }
+
 /**
  * Called via eglSwapBuffers(), drv->API.SwapBuffers().
  */
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list