mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-20 13:00:46 +02:00
Make sure the devPrivate.ptr of a textured pixmap is NULL.
Just in case when wrongly fallback to DDX layer and cause random memory corruption. Pointed out by Chris. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
5769d8603d
commit
7285f2e836
1 changed files with 1 additions and 0 deletions
|
|
@ -116,6 +116,7 @@ glamor_set_pixmap_texture(PixmapPtr pixmap, int w, int h, unsigned int tex)
|
|||
pixmap->drawable.
|
||||
bitsPerPixel + 7) / 8) +
|
||||
3) & ~3, NULL);
|
||||
pixmap->devPrivate.ptr = NULL;
|
||||
}
|
||||
|
||||
/* Set screen pixmap. If tex equal to 0, means it is called from ephyr. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue