From: Fredrik Höglund Date: Tue, 6 Nov 2012 16:36:34 +0000 (+0100) Subject: egl_dri2/x11: Fix eglPostSubBufferNV() X-Git-Tag: accepted/2.0alpha-wayland/20121114.171706~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d26890688fc4efdec64e8fef33b54049f9c690bf;p=profile%2Fivi%2Fmesa.git egl_dri2/x11: Fix eglPostSubBufferNV() This got broken in commit 0a523a8820e8a2549ac1c7887eb1892b228af44b. NOTE: This is a candidate for the 9.0 branch. Reviewed-by: Ian Romanick Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55856 (cherry picked from commit f42518962a08ce927e4ddd233d19d2661e135834) --- diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 939af86..5b27d90 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -797,7 +797,7 @@ static EGLBoolean dri2_post_sub_buffer(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw, EGLint x, EGLint y, EGLint width, EGLint height) { - const EGLint rect[4] = { x, draw->Height - y - height, width, height }; + const EGLint rect[4] = { x, y, width, height }; if (x < 0 || y < 0 || width < 0 || height < 0) _eglError(EGL_BAD_PARAMETER, "eglPostSubBufferNV");