From: Darrel J. C. <gm...@th...> - 2008-01-18 16:07:20
|
gui/plot/TrajPlotCanvas.* These updates fix the OpenGL plot bug when more than one plot window is created on Linux. The GTK implementation of OpenGL posts a size event before the window is ever opened. GMAT's OnTrajSize method handles this event, and attempts to call glViewport. However, since the viewport has not been initialized at this point, that call fails in the OpenGL libraries, terminating GMAT. I added a GTK specific flag so that size events are not handled until after the first call into the OnPaint method. At that point the GL components have been initialized and drawn on screen, so it is then safe to handle sizing events. -- ----------------------------------------------------------------------------------------------------- GMAT Architectural Design, Linux Development and Test Team Darrel J. Conway, Ph.D. Thinking Systems, Inc. Senior Scientist and CEO 6441 N Camino Libby Phone: (623) 298-4530 Tucson, AZ 85718 FAX: (520) 232-2533 www.thinksysinc.com djc_at_thinksysinc_dot_com ----------------------------------------------------------------------------------------------------- |