[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: Reasons for FreePicture to cause "RenderBadPicture"?
From: Glynn Clements <glynn () gclements ! plus ! com>
Date: 2010-08-30 8:37:15
Message-ID: 19579.28091.537346.520763 () cerise ! gclements ! plus ! com
[Download RAW message or body]
Clemens Eisserer wrote:
> > Pixmaps are reference-counted and the picture takes a reference on the
> > pixmap, so the pixmap can't go away before the picture.
> >
> > However this isn't true for windows, so as soon as the window is
> > destroyed presumably the picture is destroyed as well or becomes
> > invalid.
>
> Can this be considered as bug? I just tried the same for GCs and
> XFreeGC doesn't generate any error when the Window has already been
> destroyed.
> Sure there is an implementation detail behind it, but GCs don't show
> the same behavour and the whole thing somehow feels quite inconsistent
> :(
GCs aren't associated with a window. The drawable passed to XCreateGC
is used to specify the screen and depth, but has no significance
beyond that. A GC may be used with any drawable having the correct
screen and depth.
--
Glynn Clements <glynn@gclements.plus.com>
_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic