Make Android work again - adapt to recent changes and fix use of GL-nonES function
[freeglut] / src / android / fg_main_android.c
index 7016755..41a1d3f 100644 (file)
@@ -330,7 +330,6 @@ void handle_cmd(struct android_app* app, int32_t cmd) {
     /* The window is being shown, get it ready. */\r
     LOGI("handle_cmd: APP_CMD_INIT_WINDOW %p", app->window);\r
     fgDisplay.pDisplay.single_native_window = app->window;\r
-    window->State.WorkMask |= GLUT_INIT_WORK;\r
     /* start|resume: glPlatformOpenWindow was waiting for Handle to be\r
        defined and will now continue processing */\r
     break;\r
@@ -415,7 +414,7 @@ void fgPlatformProcessSingleEvent ( void )
   if (window != NULL && window->Window.Handle != NULL) {\r
     int32_t width = ANativeWindow_getWidth(window->Window.Handle);\r
     int32_t height = ANativeWindow_getHeight(window->Window.Handle);\r
-    fghOnReshapeNotify(width,height);\r
+    fghOnReshapeNotify(window,width,height,GL_FALSE);\r
   }\r
 \r
   /* Read pending event. */\r