diff options
author | marha <marha@users.sourceforge.net> | 2010-10-13 06:26:27 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-10-13 06:26:27 +0000 |
commit | 80654c5acd772c90d81815747e6c5fee4ee4fe11 (patch) | |
tree | 0bfa02d5e1f20c3cd5653619b125c9662488f0c4 /xorg-server/hw/xwin/winshadddnl.c | |
parent | 8f863d49542e52a810de2d795146f624761fde86 (diff) | |
download | vcxsrv-80654c5acd772c90d81815747e6c5fee4ee4fe11.tar.gz vcxsrv-80654c5acd772c90d81815747e6c5fee4ee4fe11.tar.bz2 vcxsrv-80654c5acd772c90d81815747e6c5fee4ee4fe11.zip |
winShadowUpdateDD and winShadowUpdateDDNL:
Return immediately if we didn't get needed surfaces
Diffstat (limited to 'xorg-server/hw/xwin/winshadddnl.c')
-rw-r--r-- | xorg-server/hw/xwin/winshadddnl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/winshadddnl.c b/xorg-server/hw/xwin/winshadddnl.c index 008956e91..59a0b655e 100644 --- a/xorg-server/hw/xwin/winshadddnl.c +++ b/xorg-server/hw/xwin/winshadddnl.c @@ -689,6 +689,10 @@ winShadowUpdateDDNL (ScreenPtr pScreen, if ((!pScreenPriv->fActive && pScreenInfo->fFullScreen)
|| pScreenPriv->fBadDepth) return;
+ /* Return immediately if we didn't get needed surfaces */
+ if (!pScreenPriv->pddsPrimary4 || !pScreenPriv->pddsShadow4)
+ return;
+
/* Get the origin of the window in the screen coords */
ptOrigin.x = pScreenInfo->dwXOffset;
ptOrigin.y = pScreenInfo->dwYOffset;
|