HI Stephan,

On 26 January 2012 17:46, Stephan Maximilian Huber
<[email protected]> wrote:
> Hi all / Robert,
>
> a recent commit to the repository (rev. 12912) broke compilation for ios
> / open gl es 1.1 as GL_UNPACK_ROW_LENGTH is not supported on that devices.
>
> Before fixing this with some dumb ifdefs I'll ask for any consequences
> when doing so, or for a better solution.

The only consequence for not support unpack row length is that you'd
have to only use osg::Image that are contiguous.  However, this is not
an onerous requirement as up until last week osg::Image could only
handle contiguous store of image data, and even now all existing image
plugins load osg::Image that don't use the now RowLength feature so
will all provide contiguous imagery.

The use or RowLength is really just a niche feature that a small
number of users will use, such as when handling textures that are
small portion of large imagery heading in main memory.

So disabling the feature would be fine for OpenGL ES, but on setting a
non zero RowLength osg::Image under OpenGL ES it should emit a warning
that it's not supported.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to