mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 22:10:11 +01:00
Avoid drawing to pixmaps without back-end resources.
This commit is contained in:
parent
1c93025aa4
commit
07c6aca7d7
1 changed files with 5 additions and 4 deletions
|
|
@ -68,10 +68,11 @@ do { \
|
|||
|
||||
#define DMX_GCOPS_OFFSCREEN(_pDraw) \
|
||||
(!dmxScreens[(_pDraw)->pScreen->myNum].beDisplay || \
|
||||
((_pDraw)->type == DRAWABLE_WINDOW && \
|
||||
(!DMX_GET_WINDOW_PRIV((WindowPtr)(_pDraw))->window || \
|
||||
(dmxOffScreenOpt && \
|
||||
DMX_GET_WINDOW_PRIV((WindowPtr)(_pDraw))->offscreen))))
|
||||
(((_pDraw)->type == DRAWABLE_WINDOW) ? \
|
||||
((!DMX_GET_WINDOW_PRIV((WindowPtr)(_pDraw))->window || \
|
||||
(dmxOffScreenOpt && \
|
||||
DMX_GET_WINDOW_PRIV((WindowPtr)(_pDraw))->offscreen))) : \
|
||||
(!(DMX_GET_PIXMAP_PRIV((PixmapPtr)(_pDraw)))->pixmap)))
|
||||
|
||||
/** Transfer \a pBits image to back-end server associated with \a
|
||||
* pDrawable's screen. If primitive subdivision optimization is
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue