From: Jakob Bornecrantz Date: Wed, 30 Dec 2009 04:08:09 +0000 (+0100) Subject: st/xorg: Fix warning and add a TODO comment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5169775345fc6b17b1f984e8bc3b5c3708733a7f;p=mesa.git st/xorg: Fix warning and add a TODO comment --- diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c index ccaa0c68ef7..4d169a1d14c 100644 --- a/src/gallium/state_trackers/xorg/xorg_driver.c +++ b/src/gallium/state_trackers/xorg/xorg_driver.c @@ -931,6 +931,12 @@ drv_destroy_front_buffer_kms(ScrnInfoPtr pScrn) ScreenPtr pScreen = pScrn->pScreen; PixmapPtr rootPixmap = pScreen->GetScreenPixmap(pScreen); + /* XXX Do something with the rootPixmap. + * This currently works fine but if we are getting crashes in + * the fb functions after VT switches maybe look more into it. + */ + (void)rootPixmap; + if (!ms->root_bo) return TRUE;