Hi, On Tue, 2009-07-21 at 17:41 +0530, alex wrote: > Dear Marcus > > > ReleaseDC shouldn't be called until you are closing the window. Doing it > > before probably releases the glcontext as well, making wglMakeCurrent > > fail. > > But it is calling in WIN32Window::init function ReleaseDC. It is intersting > to see it is calling twice in init function. > > I donot know why ? >
Nobody really knows why. As none of us had much windows experience, especially at the time this was initial done we just followed an example. As far as I understand it the ReleaseDC really does not matter as you should (some would say must) use a private DC (CS_OWNDC). Though I'm not sure if this will change or has changed in newer driver/windows versions. I guess it is time to look over it again. kind regards, gerrit ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
