[xserver patch v4 3/5] glx: Enforce a 1:1 correspondence between GLX and X11 windows.

Francisco Jerez currojerez at riseup.net
Mon Feb 8 13:01:04 PST 2010

Kristian Høgsberg <krh at bitplanet.net> writes:

> On Mon, Feb 8, 2010 at 1:25 PM, Francisco Jerez <currojerez at riseup.net> wrote:
>> The spec says (regarding glXCreateWindow): "If there is already a
>> GLXFBConfig associated with win (as a result of a previous
>> glXCreateWindow call), then a BadAlloc error is generated.". It will
>> also come useful to implement DRI2InvalidateBuffers for the indirect
>> case.
> Can you just use the existing __glXDrawableRes for tracking this?
I don't think so. To implement DRI2InvalidateBuffers we need a way to
map an X11 window to its GLX window: In the GLX1.3 world the client
decides the IDs of its GLX drawables so in general GLX and X11 drawable
IDs aren't going to be the same.

> cheers,
> Kristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20100208/fc173fab/attachment.pgp 

More information about the xorg-devel mailing list