From: Fay J. F C. AAC/W. <joh...@eg...> - 2003-09-02 16:51:14
|
Possibly, but it is not guaranteed. There is a "ReleaseDC" call in the Windows code in "fgSetWindow" that is called whether or not "window" is nonzero. At the moment I would like to have as few side effects as possible. The change definitely bears looking into after the 2.0.0 release, though. John F. Fay joh...@eg... -----Original Message----- From: Chris Purnell [mailto:cj...@lo...] Sent: Tuesday, September 02, 2003 11:11 AM To: fre...@li... Subject: Re: [Freeglut-developer] Fix for bug On Tue, Sep 02, 2003 at 10:19:44AM -0500, Fay John F Contr AAC/WMG wrote: > freeglut_main.c line 185: > > if ( current_window ) > fgSetWindow ( current_window ) ; > > The "if ( current_window )" is new. It fixed the crash on my Linux system > when I clicked the "X" to close a window. Wouldn't moving the "if ( window )" in fgSetWindow() to outside the #if's be a better fix? -- Christopher John Purnell | I thought I'd found a reason to live http://www.lost.org.uk/ | Just like before when I was a child --------------------------| Only to find that dreams made of sand What gods do you pray to? | Would just fall apart and slip through my hands ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freeglut-developer mailing list Fre...@li... https://lists.sourceforge.net/lists/listinfo/freeglut-developer |