[Gambas-user] how to exiting gracefully from an SDL/OpenGL program

Laurent Carlier lordheavym at ...626...
Sun Feb 10 10:57:06 CET 2013


Le dimanche 10 février 2013 02:26:32 Kevin Fishburne a écrit :
> I've read the comments about not using Quit when closing a non-console
> application, including the suggestion that the main form be closed in
> order to terminate execution.
> 
> How do you close an SDL/OpenGL program? The main procedure has no Close
> method and there are no forms (no Qt/GTK). It seems like the video RAM
> isn't being freed when I close using Quit, requiring me to periodically
> reboot my system (not even closing GAMBAS frees the VRAM).
> 
> Thanks.

Just use the Close() method from the Window class.
++
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20130210/d8fe95ac/attachment.sig>


More information about the User mailing list