Hi robert, I suggest an optimization of the osg/BufferObject header regarding ES support.
In most GL variants the typedefs for the handling of VBOs (GLintptr,GLsizeiptr) are already present: -All OpenGL implementations since version 1.5 -All OpenGL implementations where the extension GL_ARB_vertex_buffer_object is available -All OpenGL ES implementations except version 1.0 The trunk version of BufferObject contains two blocks that declare these types depending on the conditions for OpenGL, the first two conditions from above. Here the correct handling of OpenGL ES versions is missing. This leads to a compiler error about multiply defined declarations with different types, as most OpenGL ES versions already declare the types. I moved the query outside the blocks for GL_ARB_vertex_buffer_object and GL_VERSION_1_5 and extended the query with the correct conditions for OpenGL ES. Now there is a single block with these 2 typedefs. The ARB specific types are declared separately as before. The change is based on the current trunk. I have tested the change on windows XP and ubuntu systems both with OpenGL 2.0 and a target system with OpenGL ES 2.0. Thank you! Cheers, Johannes ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41661#41661 Attachments: http://forum.openscenegraph.org//files/bufferobject_147.zip _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
