Re: Solution for bug in tilesortspu_DrawRangeElements.

Brian Paul <[email protected]> Thu, 14 Sep 2006 10:44:10 -0600
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
James Supancic wrote:
> Solution for bug in tilesortspu_DrawRangeElements.
> 
> All the for loops in this function should use i=0 not i=start. Start
> and End have nothing to do with which parts of the index buffer should
> be sent, they refer to the maximum and minimum array index contained
> in the index buffer. If you like you could add an if statement in the
> for loops to filter out array indexes that are not bound by start and
> end.
> 
> for (i = start ; i < count ; i++)
> {
> //pack array element
> }
> 
> should be replaced with:
> 
> for (i = 0 ; i < count ; i++)
> {
> //pack array element
> }

Thanks.  Fixed in CVS.

-Brian


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642