diff options
author | Will Thompson <will@willthompson.co.uk> | 2012-05-09 16:59:28 +0100 |
---|---|---|
committer | Will Thompson <will@willthompson.co.uk> | 2012-05-09 16:59:28 +0100 |
commit | ea3d8f269ea43c0ec3b7bbc2221c3cda50898b21 (patch) | |
tree | e52e46001b060bd87f9cb1fce2ca70b1e8c9448e | |
parent | f2192a37caf571bfc77b953fce231a3fe536965b (diff) |
exa: fix IsOffscreen to work for screen pixmap
-rw-r--r-- | src/videocore-exa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/videocore-exa.c b/src/videocore-exa.c index 1249ca4..2957534 100644 --- a/src/videocore-exa.c +++ b/src/videocore-exa.c @@ -513,7 +513,8 @@ VideoCorePixmapIsOffscreen(PixmapPtr pPixmap) { VideoCorePixmapPrivPtr priv = exaGetPixmapDriverPrivate(pPixmap); - return priv && priv->egl_image != EGL_NO_IMAGE_KHR; + return priv != NULL && + (priv->is_screen_pixmap || priv->texture_id != 0); } static Bool |