[Mesa-dev] [PATCH] mesa: Fix an issue with texture border in strip_texture_border()

Eric Anholt eric at anholt.net
Wed Feb 29 18:07:50 PST 2012

On Wed, 29 Feb 2012 14:07:36 -0800, Anuj Phogat <anuj.phogat at gmail.com> wrote:
> Border only applies to the width for a 1D texture array and for a 2D
> texture array the it applies to the width and height but not to the
> depth.  This was not handled correctly in strip_texture_border().
> v2: height is also affected by border if target is GL_TEXTURE_3D

It seems like the patch would be a lot shorter if you just special-cased
texture arrays in the previous code instead of adding the big switch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120229/b59efb76/attachment.pgp>

More information about the mesa-dev mailing list