summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-10-02 11:31:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-10-02 11:32:47 +0100
commit8c2821d77c4b3bdd4d40d4a2c69f935a9eb0fd47 (patch)
treeb2532ac3191b182b100a1044accef25c0f5754b3 /src
parent51202798862c79ad417936cfe2d1847b1da4ab87 (diff)
sna: Remember to call ValidatePicture() before using newly created Pictures
Reported-by: Marco De Michele <marco.demichele@taolab.it> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55527 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 61d1a9f5..fc5cbfc5 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -2988,6 +2988,9 @@ sna_crtc_redisplay__composite(xf86CrtcPtr crtc, RegionPtr region)
if (!dst)
goto free_src;
+ ValidatePicture(src);
+ ValidatePicture(dst);
+
if (!sna->render.composite(sna,
PictOpSrc, src, NULL, dst,
0, 0,