Fix random crash

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1621 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2013-05-19 15:01:33 +00:00
parent efa4318cca
commit 2f2ee68986
2 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,6 @@ void handle_cmd(struct android_app* app, int32_t cmd) {
/* The window is being shown, get it ready. */ /* The window is being shown, get it ready. */
LOGI("handle_cmd: APP_CMD_INIT_WINDOW %p", app->window); LOGI("handle_cmd: APP_CMD_INIT_WINDOW %p", app->window);
fgDisplay.pDisplay.single_native_window = app->window; fgDisplay.pDisplay.single_native_window = app->window;
window->State.WorkMask |= GLUT_INIT_WORK;
/* start|resume: glPlatformOpenWindow was waiting for Handle to be /* start|resume: glPlatformOpenWindow was waiting for Handle to be
defined and will now continue processing */ defined and will now continue processing */
break; break;

View File

@ -64,6 +64,7 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
/* fgPlatformProcessSingleEvent(); */ /* fgPlatformProcessSingleEvent(); */
} }
window->Window.Handle = fgDisplay.pDisplay.single_native_window; window->Window.Handle = fgDisplay.pDisplay.single_native_window;
window->State.WorkMask |= GLUT_INIT_WORK;
/* Create context */ /* Create context */
fghChooseConfig(&window->Window.pContext.egl.Config); fghChooseConfig(&window->Window.pContext.egl.Config);