1
0
Fork 0

#323: Bad init sequence could segfault

Oops, early window event callbacks could trigger issues on some systems.
Fixes an issue caused by my commit 473d1447c3
This commit is contained in:
ThorstenB 2011-05-22 22:56:51 +02:00
parent dd9d82d941
commit bdeeab8453

View file

@ -272,7 +272,6 @@ void fgOSExit(int code)
int fgOSMainLoop()
{
globals->get_renderer()->init();
ref_ptr<FGEventHandler> manipulator
= globals->get_renderer()->getEventHandler();
viewer->setReleaseContextAtEndOfFrameHint(false);
@ -307,6 +306,7 @@ void fgWarpMouse(int x, int y)
void fgOSInit(int* argc, char** argv)
{
globals->get_renderer()->init();
WindowSystemAdapter::setWSA(new WindowSystemAdapter);
}