cleanupSample() is never called

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

cleanupSample() is never called

Postby Rackle » Wed May 03, 2006 23:27

I had placed code there to save the positions of my windows/dialogs but it was never called. I "fixed" it by adding the call to cleanupSample() within CEGuiSample::cleanup():
void CEGuiSample::cleanup()
{
cleanupSample();

if (d_sampleApp)
{
d_sampleApp->cleanup();
delete d_sampleApp;
d_sampleApp = 0;
}

if (d_rendererSelector)
{
delete d_rendererSelector;
d_rendererSelector = 0;
}

}

Return to “Help”

Who is online

Users browsing this forum: No registered users and 33 guests