#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:
parent
dd9d82d941
commit
bdeeab8453
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue