[osg-submissions] Bug in Texture2DArray

Robert Osfield robert.osfield at gmail.com
Mon Sep 10 01:28:45 PDT 2007


HI Art.

Could you post the copmplete modified file, copy and pasting form
emails is very unrelieable and prone to misunderstanding and bugs.

Robert.

On 9/9/07, Art Tevs <stud_info2 at yahoo.de> wrote:
> Hi, Robert.
>
> Please correct Texture2DArray in the method
> exture2DArray::applyTexImage2DArray_subload() as following:
>
> from Line 385
> -----------------------------------------------------
>
> numMipmapLevels = image->getNumMipmapLevels();
>
> int width  = image->s();
> int height = image->t();
>
> for( GLsizei k = 0 ; k < numMipmapLevels  && (width || height ) ;k++)
> {
>
>     if (width == 0)
>         width = 1;
>     if (height == 0)
>         height = 1;
>
>     extensions->glTexImage3D( target, k, _internalFormat,
>                                 width, height, indepth, _borderWidth,
>
> (GLenum)image->getPixelFormat(),
>                                 (GLenum)image->getDataType(),
>                                 image->getMipmapData(k));
>
>     width >>= 1;
>     height >>= 1;
> }
>
>
> ---------------------
>
> Before there was also a change in the depth, which is wrong. Depth parameter
> (of glTexImage3D) is the layer number and should stay constant for all
> mipmap levels.
>
> Thanks.
>
> Cheers, Art
>
>
>  ________________________________
>  Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER!
>
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>


More information about the osg-submissions mailing list