On 8/22/07, Shane Blackett <[EMAIL PROTECTED]> wrote: > Hi, > > I have a project which uses shared display lists and have now been > trying to get this to work with the Windows gdi driver in Mesa-7.0.1. > > I have attached a patch which just hooks up wglShareLists with > _mesa_share_state, and adds a patch to (re)-initialise the context with > init_attrib_groups after the new shared context is selected. > > I realise that this probably leaks some stuff in the ctx but I wasn't > sure which finalise routines I should and shouldn't be calling. > > I happy to refine this patch, add some better cleaning up for the ctx > which is having it's Shared parameter replaced or to make it work with a > suitable example if you want these to happen before inclusion. Please > feel free to point me in the right direction.
The problem with calling init_attrib_groups() in _mesa_share_state() is the former function is going to trash some important state that may have been set by the driver (such as constants and extensions). Also, I think there'll be a number of memory leaks. I think we need a new function which updates the context's default texture objects, program objects, etc. to point to those in the share group. Do you want to look into that? I think you're the first person to make use of _mesa_share_state(). -Brian ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
