From: Powell, M. A. <Mar...@ps...> - 2002-07-25 21:38:44
|
I don't' have a gljfree call in my display method, or anywhere in the program for that matter. In fact, I noticed I NEVER use any glj methods and am wondering if this is my problem? Here's a snapshot of the display method: public void display(GLDrawable gld) { gl.glLoadIdentity(); =20 Vector3d pos =3D camera.getPosition(); Vector3d view =3D camera.getView(); Vector3d up =3D camera.getUp(); glu.gluLookAt(pos.x, pos.y, pos.z, view.x, view.y, view.z, up.x, up.y, up.z); //Clear The Screen And The Depth Buffer gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); library.drawSimpleTerrain(gld, terrain); entityRenderer.renderEntities(); } Thanks, Mark -----Original Message----- From: Nadeige - shouting fish [mailto:ni...@sh...]=20 Sent: Thursday, July 25, 2002 3:22 PM To: Powell, Mark A.; gl4...@li... Subject: Overriding the 'Exit' button... >The dialog works, hitting yes closes the application while no just >closes the dialog... however, as soon as I hit the 'X' button of the >Frame, I get: > >gljDestroy failed (free) and the canvas no longer renders. removing your call to gljfree() at the end of your display() method should prevent the message gljDestroy failed (free) to appear. to quit your application, call System.exit(0) when the "no" button is hit. Regards, Alban |