For part of the front-buffer rendering fixes the server could actually return N+1 buffers when only N was requested.
Signed-off-by: Ian Romanick <[email protected]> --- src/glx/x11/dri2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/glx/x11/dri2.c b/src/glx/x11/dri2.c index 3b48cd9..f967432 100644 --- a/src/glx/x11/dri2.c +++ b/src/glx/x11/dri2.c @@ -253,7 +253,7 @@ DRI2Buffer *DRI2GetBuffers(Display *dpy, XID drawable, *height = rep.height; *outCount = rep.count; - buffers = Xmalloc(count * sizeof buffers[0]); + buffers = Xmalloc(rep.count * sizeof buffers[0]); if (buffers == NULL) { _XEatData(dpy, rep.count * sizeof repBuffer); UnlockDisplay(dpy); -- 1.6.0.6 ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
