• Aaron Plattner's avatar
    Fix pixmap validation in miDbePositionWindow. · 1304b8b2
    Aaron Plattner authored
    miDbePositionWindow allocates two pixmaps: a front buffer, and a back buffer.
    If the buffers are supposed to be initialized, it validates a GC against the
    front buffer, then uses it to fill and/or copy both the front buffer *and* the
    back buffer, without revalidating.  If the acceleration architecture needs
    different GC funcs for the two pixmaps -- for example if allocation of the front
    buffer exhausted video memory -- then this can cause crashes because the GC is
    not validated for the back buffer pixmap.
    Fix this by performing the rendering for the front buffer first, then
    revalidating against the back buffer before performing the back buffer
    Signed-off-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
    Reviewed-by: Jamey Sharp's avatarJamey Sharp <jamey@minilop.net>
    Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
Last commit
Last update
Makefile.am Loading commit data...
dbe.c Loading commit data...
dbestruct.h Loading commit data...
midbe.c Loading commit data...
midbe.h Loading commit data...
midbestr.h Loading commit data...