[osg-submissions] Bug in Texture2DArray

Robert Osfield robert.osfield at gmail.com
Tue Sep 11 05:05:35 PDT 2007


Hi Art,

Could you please checked the SVN version of the OSG and let me know if
this bug fix is now correctly merged (I'm assuming that it was in the
interger texture patch).

Robert.

On 9/10/07, Art Tevs <stud_info2 at yahoo.de> wrote:
> Hi,
>
> Is hard to do, since the file already contains a lot of other changes. See
> another post from me ("Possible bug in ...") it contains the correction of
> the bug and also this one.
>
> Art
>
> Robert Osfield <robert.osfield at gmail.com> schrieb:
>  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 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
> >
> >
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>
>  ________________________________
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s
> mit dem neuen Yahoo! Mail.
>
>
> _______________________________________________
> 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