X11 glXCreateContext() passes the first context as the 3rd argument (called shareList).
Ghost/SDL uses SDL_GL_SHARE_WITH_CURRENT_CONTEXT. According to SDL's commit log this works on windows & linux. you could check on SDL source and see how they handle this on windows. On Tue, Jul 23, 2013 at 4:11 AM, Brecht Van Lommel <[email protected]> wrote: > Both X11/Cocoa have a similar first GLXContext/NSOpenGLContext that is > not deleted, so I don't think it's specific to Windows. > > Textures (fonts, icons, images) and other OpenGL buffer are shared > between windows, I'm not sure how this stuff works but I guess they > are somehow linked to the first context. > > On Mon, Jul 22, 2013 at 9:52 AM, Jason Wilkins > <[email protected]> wrote: >> It appears that when creating a GHOST window in Windows that it only calls >> ReleaseDC on it if it is not the first one created. >> >> Does this have to do with WGL's DisplayList sharing or some other quirk of >> windows? >> >> The reason I ask is because if it only has to do with features in WGL then >> I can ignore it, but if it is more general behavior then I'll need to make >> sure the EGL branch also avoids deleting the first DC as well. >> _______________________________________________ >> Bf-committers mailing list >> [email protected] >> http://lists.blender.org/mailman/listinfo/bf-committers > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers -- - Campbell _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
