[Bf-committers] First HDC in Windows GHOST
ideasman42 at gmail.com
Mon Jul 22 20:29:44 CEST 2013
X11 glXCreateContext() passes the first context as the 3rd argument
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
<brechtvanlommel at pandora.be> 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
> <jason.a.wilkins at gmail.com> 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
>> 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
>> Bf-committers at blender.org
> Bf-committers mailing list
> Bf-committers at blender.org
More information about the Bf-committers