On 2/13/07, Etienne Clement <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Texture sampling for non-power-of-two textures (NPOT) using GL_LINEAR
> min/max filtering and GL_REPEAT wrap mode was broken in the software
> rasterizer. The function used to compute the texel locations in this
> case was not NPOT ready. The fix was pretty straightforward. You will
> find the patch below.
[...]
Actually, the intention was that sample_2d_linear_repeat() be only
used for the POT case as it's a (somewhat) optimized path.
I think the line around 1200:
if (tObj->WrapS == GL_REPEAT && tObj->WrapT == GL_REPEAT) {
needs to also check if image->_IsPowerOfTwo is true.
Can you try that instead and see if it fixes your problem?
-Brian
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev