From 3ec703cd63fab0337c15fbadf6aaa173d70c9329 Mon Sep 17 00:00:00 2001 From: Raymond Smith Date: Tue, 15 Apr 2014 11:51:07 +0100 Subject: Clarify assumptions on window front buffer pixmaps We assume that a window's front buffer pixmap won't be reallocated from beneath us. This commit updates a comment to reflect this assumption. Change-Id: Ic1ddc508dee8b1696643dd418ddb466fbce9d8fb --- src/armsoc_dri2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/armsoc_dri2.c b/src/armsoc_dri2.c index 793ea10..7d05575 100644 --- a/src/armsoc_dri2.c +++ b/src/armsoc_dri2.c @@ -48,9 +48,8 @@ struct ARMSOCDRI2BufferRec { /** * Pixmap(s) that are backing the buffer * - * NOTE: don't track the pixmap ptr for the front buffer if it is - * a window.. this could get reallocated from beneath us, so we should - * always use draw2pix to be sure to have the correct one + * We assume that a window's front buffer pixmap is never reallocated, + * and therefore that it is safe to use the pointer to it stored here. */ PixmapPtr *pPixmaps; -- cgit v1.2.3