[PATCHv2 1/2] DRI2: Track DRI2 drawables as resources, not privates
Kristian Høgsberg
krh at bitplanet.net
Thu Apr 15 13:35:02 PDT 2010
2010/4/15 Keith Packard <keithp at keithp.com>:
> On Thu, 15 Apr 2010 14:47:51 -0400, Kristian Høgsberg <krh at bitplanet.net> wrote:
>
>> Right, it would linger until the client exits. So I guess I'll have
>> to actually AddResource the pixmap with the FakeClientID and then use
>> FreeResource to destroy it instead of pScreen->DestroyPixmap.
>
> I think that will work. It sure seems ugly though.
Ah, we can just assign the pixmap the XID of the pbuffer and
AddResource it using that XID. That way both the hidden pixmap and
the DRI2 drawable will automatically be reclaimed when the client
destroys the pbuffer or exits.
Kristian
More information about the xorg-devel
mailing list