Hi JS,

I'm just porting mipmap.cpp across to compiling against GLES1&2, this
is require many dozens #if's through the code so merging in external
changes will be awkward right now.

When I've completed the GLES porting work I'll ping you again and get
you to reapply your fix if that's OK.

Robert.

On Fri, Oct 8, 2010 at 5:40 PM, Jean-Sébastien Guay
<[email protected]> wrote:
> Hi again,
>
>> I guess we need to add something there so that GL_ARB_texture_cube_map
>> is defined when we get to that point?
>
> Sorry, while I was waiting for a reply I figured out the right checks and
> fixed it. :-)
>
> Here's the modified file. I've added this code for the non-ARB version of
> TEXTURE_CUBE_MAP:
>
>  #if defined(GL_TEXTURE_CUBE_MAP)
>    if ((target == GL_TEXTURE_CUBE_MAP_POSITIVE_X) ||
>        (target == GL_TEXTURE_CUBE_MAP_NEGATIVE_X) ||
>        (target == GL_TEXTURE_CUBE_MAP_POSITIVE_Y) ||
>        (target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Y) ||
>        (target == GL_TEXTURE_CUBE_MAP_POSITIVE_Z) ||
>        (target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Z) ||
>        (target == GL_TEXTURE_CUBE_MAP_NEGATIVE_Z)) {
>        proxyTarget = GL_PROXY_TEXTURE_CUBE_MAP;
>        glTexImage2D(proxyTarget, 1, /* must be non-zero */
>                     internalFormat,
>                     widthAtLevelOne,heightAtLevelOne,0,
>                     format,type,NULL);
>    } else
>  #endif /* GL_TEXTURE_CUBE_MAP */
>
> and it works great in osgOcean with the cubemap for the skybox environment.
>
> Thanks,
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                               http://www.cm-labs.com/
>                        http://whitestar02.webhop.org/
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to