X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fandroid%2Ffg_window_android.c;h=1b064cf235d0d8c94b9769418f8b5e26f916ac81;hb=e299df837915eaaf97e8e4ccbcb75bf1876661da;hp=6b51091f2cf0fc9773b1baf7f3304e2ec0085170;hpb=44856885ba35db9526d24d140b84ce492f4871d2;p=freeglut diff --git a/src/android/fg_window_android.c b/src/android/fg_window_android.c index 6b51091..1b064cf 100644 --- a/src/android/fg_window_android.c +++ b/src/android/fg_window_android.c @@ -52,8 +52,8 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title, return; } - fghChooseConfigEGL(&window->Window.pContext.egl.Config); - fghCreateNewContextEGL(window); + fghChooseConfig(&window->Window.pContext.egl.Config); + window->Window.Context = fghCreateNewContextEGL(window); /* Wait until window is available and OpenGL context is created */ /* Normally events are processed through glutMainLoop(), but the @@ -92,11 +92,6 @@ void fgPlatformCloseWindow( SFG_Window* window ) /* Window pre-created by Android, no way to delete it */ } -void fgPlatformSetWindow ( SFG_Window *window ) -{ - /* TODO: only a single window possible? */ -} - /* * This function makes the current window visible */