From: Fay, J. F Dr C. U. A. AAC/X. <joh...@eg...> - 2011-12-19 14:47:02
|
(insert appropriate expletive here) John F. Fay Technical Fellow, Modeling and Simulation Jacobs Technology / TEAS Group P.O. Box 1935, Eglin AFB, FL 32542-5000 850-883-3496 -----Original Message----- From: John Tsiombikas [mailto:nu...@me...] Sent: Monday, December 19, 2011 7:08 AM To: fre...@li... Subject: Re: [Freeglut-developer] Access violation on CRT exit(). On Sat, Dec 17, 2011 at 07:21:59AM -0600, John F. Fay wrote: > > (2) I put in Martin's conditional compilation for > "atexit(fgDeinitialize)". We should probably take it out right after > the release. > > Everybody please do a bit of testing and I'll see about Release > Candidate 3 tomorrow. Just got around to test this, and apparently this conditional compilation patch was wrong. TARGET_HOST_MS_WINDOWS is defined irrespective of if we're on windows or not. Just on windows it will be defined to 1 while otherwise it'll be defined as 0. Here's a patch to fix this problem. I've also modified the deinit function to explicitly call glutLeaveGameMode if we're in it. -- John Tsiombikas http://nuclear.mutantstargoat.com/ |