diff options
-rw-r--r-- | src/radeon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon.h b/src/radeon.h index 6084cfed..375a7269 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -678,7 +678,7 @@ static inline struct radeon_bo *radeon_get_pixmap_bo(PixmapPtr pPix) { struct radeon_exa_pixmap_priv *driver_priv; driver_priv = exaGetPixmapDriverPrivate(pPix); - return driver_priv->bo; + return driver_priv ? driver_priv->bo : NULL; } return NULL; |