diff options
-rw-r--r-- | src/radeon_dri2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index 66a223d8..17983779 100644 --- a/src/radeon_dri2.c +++ b/src/radeon_dri2.c @@ -728,8 +728,9 @@ radeon_dri2_exchange_buffers(DrawablePtr draw, DRI2BufferPtr front, DRI2BufferPt { struct dri2_buffer_priv *front_priv = front->driverPrivate; struct dri2_buffer_priv *back_priv = back->driverPrivate; - ScreenPtr screen = draw->pScreen; - RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(screen)); +#ifdef USE_GLAMOR + RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(draw->pScreen)); +#endif RegionRec region; int tmp; |