summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorFredrik Höglund <[email protected]>2012-11-06 17:36:34 +0100
committerFredrik Höglund <[email protected]>2012-11-07 00:51:09 +0100
commitf42518962a08ce927e4ddd233d19d2661e135834 (patch)
treee83dd4324433514c5d298c018af5863e5ee4be8e /src/egl
parent91b828ea740daa0bff6abb7da03dd18594016091 (diff)
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 <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55856
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/platform_x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c
index 936e3806521..da61cfc7498 100644
--- a/src/egl/drivers/dri2/platform_x11.c
+++ b/src/egl/drivers/dri2/platform_x11.c
@@ -794,7 +794,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");