diff options
author | Keith Packard <keithp@keithp.com> | 2010-07-01 09:13:43 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-07-02 12:30:24 -0400 |
commit | 9f0b193acdc29e491b6245390cf9f53b5222e6d3 (patch) | |
tree | 9c235305c74684850633bd8a0582b4c5e0e6b841 /dbe | |
parent | a94cb400d15b8c78dc04148cbd8db8e5ec8364b5 (diff) |
miDbe window priv priv is pre-allocated, don't use dixSetPrivate (bug 28639)
miDbeInit pre-allocates space in each DBE window private private for a
MiDbeWindowPrivPrivRec. miDbeAllocBackBufferName used the
pre-allocated space correctly (simply fetching it instead of
allocating a new piece of memory). However, it then called
dixSetPrivate anyways, which isn't necessary, and (in the new
dixPrivate world) causes an assert failure.
Signed-off-by: Keith Packard <keithp@keithp.com>
Tested-by: Magnus Kessler <Magnus.Kessler@gmx.net>
Reviewed-by: Magnus Kessler <Magnus.Kessler@gmx.net>
Diffstat (limited to 'dbe')
-rw-r--r-- | dbe/midbe.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/dbe/midbe.c b/dbe/midbe.c index 954f46e1a..b43ac1b3d 100644 --- a/dbe/midbe.c +++ b/dbe/midbe.c @@ -202,12 +202,6 @@ miDbeAllocBackBufferName(WindowPtr pWin, XID bufId, int swapAction) return (rc == Success) ? BadAlloc : rc; } - - /* Attach the priv priv to the priv. */ - dixSetPrivate(&pDbeWindowPriv->devPrivates, miDbeWindowPrivPrivKey, - pDbeWindowPrivPriv); - - /* Clear the back buffer. */ pGC = GetScratchGC(pWin->drawable.depth, pWin->drawable.pScreen); if ((*pDbeScreenPriv->SetupBackgroundPainter)(pWin, pGC)) |