From: Sylvain Beucler Date: Sun, 19 May 2013 15:05:39 +0000 (+0000) Subject: Make Android work again - adapt to recent changes and fix use of GL-nonES function X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=6090a1ed96f3eb4c90f1f38ec9cd37ae0fe9b30e;p=freeglut Make Android work again - adapt to recent changes and fix use of GL-nonES function git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1623 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/progs/test-shapes-gles1/AndroidManifest.xml b/progs/test-shapes-gles1/AndroidManifest.xml index 3050ecb..7839f74 100644 --- a/progs/test-shapes-gles1/AndroidManifest.xml +++ b/progs/test-shapes-gles1/AndroidManifest.xml @@ -7,7 +7,7 @@ - + Window.Handle != NULL) { int32_t width = ANativeWindow_getWidth(window->Window.Handle); int32_t height = ANativeWindow_getHeight(window->Window.Handle); - fghOnReshapeNotify(width,height); + fghOnReshapeNotify(window,width,height,GL_FALSE); } /* Read pending event. */ diff --git a/src/fg_geometry.c b/src/fg_geometry.c index 96f171e..587501c 100644 --- a/src/fg_geometry.c +++ b/src/fg_geometry.c @@ -557,7 +557,7 @@ static void fghDrawNormalVisualization11() /* Done, free memory, reset color */ free(verticesForNormalVisualization); - glColor4fv(currentColor); + glColor4f(currentColor[0],currentColor[1],currentColor[2],currentColor[3]); } #endif diff --git a/src/gles_stubs.c b/src/gles_stubs.c index 63693cc..669f44a 100644 --- a/src/gles_stubs.c +++ b/src/gles_stubs.c @@ -29,6 +29,7 @@ void glutChangeToSubMenu( int item, const char* label, int value ) {} void glutRemoveMenuItem( int item ) {} void glutAttachMenu( int button ) {} void glutDetachMenu( int button ) {} +void glutSetMenuFont( int menuID, void* font ) {} void glutBitmapCharacter( void* font, int character ) {} int glutBitmapWidth( void* font, int character ) { return 0; }