Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=9202          
     
           Summary: gluScaleImage's scale_internal function assumes
                    GL_REPEAT
           Product: Mesa
           Version: CVS
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: GLU
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


There is no verification if the texture is required to be GL_CLAMP /
GL_CLAMP_AT_EDGE / GL_CLAMP_AT_BORDER. It is always GL_REPEAT.

For example, a valid approach for GL_CLAMP_AT_EDGE would be to put:
yindex = yint;
if (yindex < 0) yindex = 0;
else if (yindex >= heightin) yindex = heightin-1;

instead of yindex = (yint + heightin) % heightin;

(mirrored in the x loop of course)

as such, the GL_CLAMP_AT_BORDER could be optimized to set border colors for
outside pixels too. And GL_REPEAT, obviously, should have the much desirable
side effect applied to it.

I don't know the repercussions of such a change, nor what is the "good thing" to
do or how to correct it, or even if it is to be corrected. All I know is this is
invalid behaviour for non-repeatable elements, like fonts or individual user
interface elements.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
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

Reply via email to