winex11.drv: Make wglShareLists() cope with previously selected destination context (try 3)

Chris Robinson chris.kcat at
Fri Sep 19 08:51:17 CDT 2008

Resending to the proper email address, this time..

On Friday 19 September 2008 06:37:03 am Jim Cameron wrote:
> > MSDN clearly mentions
> > that the hglrc2 parameter shouldn't contain any existing
> > display lists, so this situation isn't allowed. This
> > would mean wglShareLists(dest, source) is invalid and second
> > that when perform a legal wglShareLists(source, dest) that
> > dest can't have been current in any thread.
> I took that statement from MSDN to imply that you can't have created any
> display lists glGenLists() in the destination context, but not say anything
> about having previously made it current in some thread. Does it imply that
> as well? Windows clearly allows it (or at least, allows the app to get away
> with doing it), or Windows apps wouldn't do it.

The referred to "lists" aren't display lists. It's more appropritely (specific 
sets of) resources.. eg. the list of valid textures, the list of valid shader 
objects, etc, are what's shared.

More information about the wine-devel mailing list