free(reply);
}
- if (dri2_dpy->dri2 && type == EGL_WINDOW_BIT &&
- dri2_surf->base.RenderBuffer == EGL_BACK_BUFFER)
- dri2_surf->base.PostSubBufferSupportedNV = EGL_TRUE;
- else
- dri2_surf->base.PostSubBufferSupportedNV = EGL_FALSE;
+ /* we always copy the back buffer to front */
+ dri2_surf->base.PostSubBufferSupportedNV = EGL_TRUE;
return &dri2_surf->base;
{
const EGLint rect[4] = { x, draw->Height - y - height, width, height };
+ if (x < 0 || y < 0 || width < 0 || height < 0)
+ _eglError(EGL_BAD_PARAMETER, "eglPostSubBufferNV");
+
return dri2_swap_buffers_region(drv, disp, draw, 1, rect);
}