Hi Rafam I have Android phone so am curious about how well you'll get on, I haven't actually attempted any port - way too many other tasks on my plate to tinker.
On Wed, Aug 18, 2010 at 7:59 PM, Rafa Gaitan <[email protected]> wrote: > /Users/rgaitan/Projects/OSG/osg-trunk/src/osg/Texture.cpp: In member > function 'void osg::Texture::applyTexImage2D_load(osg::State&, GLenum, > const osg::Image*, GLsizei, GLsizei, GLsizei) const': > /Users/rgaitan/Projects/OSG/osg-trunk/src/osg/Texture.cpp:1600: error: > 'GL_RED' was not declared in this scope. > > I'm not sure how to achieve the change, maybe adding and #ifdef and > checking if GLES/GLES2 is active? The other changes I have are only to > allow ndk gcc compiler build correctly so they are minor changes, but > the change on Texture.cpp affects functionality and I'm not sure which > is the better way to achieve it. Once I have things working I will > post on osg-submission the changes ;) You could just add a #ifndef GL_RED #define GL_RED 0x1903 #endif To get the code to compile. It won't do anything as the extension code paths won't be visited, this is the approach I've previously been using to minimize the number of code differences between platforms. Robert, _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

