Quando utilizzo OGRE con SDL (come descritto in this article), sembra che si stia riscontrando un problema con una seconda finestra visualizzata dietro la finestra di rendering principale. Fondamentalmente, il codice che sto usando è questo:Come utilizzare SDL con OGRE?
SDL_init(SDL_INIT_VIDEO);
SDL_Surface *screen = SDL_SetVideoMode(640, 480, 0, SDL_OPENGL);
Ogre::Root *root = new Ogre::Root();
root->restoreConfig();
root->initialise(false);
Ogre::NameValuePairList windowSettings;
windowSettings["currentGLContext"] = Ogre::String("True");
Ogre::RenderWindow *window = root->createRenderWindow("MainRenderWindow", 640, 480, false, &windowSettings);
window->setVisible(true);
La domanda è: come faccio a eliminare la finestra aggiuntiva?
Solo per i posteri, sto usando OGRE 1.6.4, Mac OS X 10.6.2 e SDL 1.2.14.