On Sun, 2007-12-08 at 14:43 -0400, James C Georgas wrote: > As an aside, I'm looking at the 1.4 programming guide (4th ed.), on page > 418, section "Repeating and Clamping Textures", where it describes the > tiling effects. I read it like this: > > GL_NEAREST ==> GL_CLAMP = GL_CLAMP_TO_EDGE > > GL_LINEAR ==> GL_CLAMP = GL_CLAMP_TO_BORDER > > Did I interpret it right?
I looked at the output of the texwrap test program in the mesa source, and it looks like my second assertion above is only true in the texture co-ordinate range [0,1]. Outside [0,1], GL_CLAMP differs from both GL_CLAMP_TO_EDGE and GL_CLAMP_TO_BORDER, but only when the filter method is GL_LINEAR. So I'll agree with you now that GL_CLAMP can't just be set to GL_CLAMP_TO_EDGE or GL_CLAMP_TO_BORDER, on hardware that doesn't implement GL_CLAMP, without breaking compliance to the spec. I still think a manual override in driconf is a good idea though. Even on hardware that does implement GL_CLAMP, it'd be handy for old binary progs that assume GL_CLAMP == GL_CLAMP_TO_EDGE. James /\V ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel