mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
egl_dri2/x11: Fix eglPostSubBufferNV()
This got broken in commit0a523a8820. NOTE: This is a candidate for the 9.0 branch. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55856 (cherry picked from commitf42518962a)
This commit is contained in:
parent
c4f392aafb
commit
d26890688f
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue