glamor: Fix a compiler warning since the recent OOM fixes.

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 3b26b90cb7)
This commit is contained in:
Eric Anholt 2020-02-10 10:22:34 +01:00 committed by Michel Dänzer
parent d2a6c8708c
commit d44bbb4710

View File

@ -146,8 +146,6 @@ glamor_prep_pixmap_box(PixmapPtr pixmap, glamor_access_t access, BoxPtr box)
static void
glamor_fini_pixmap(PixmapPtr pixmap)
{
ScreenPtr screen = pixmap->drawable.pScreen;
glamor_screen_private *glamor_priv = glamor_get_screen_private(screen);
glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(priv))