[Mesa-dev] [PATCH 09/16] mesa: When storing texture data for a 1D array, map each slice separately.

Eric Anholt eric at anholt.net
Mon Oct 3 13:22:37 PDT 2011


On Mon, 03 Oct 2011 08:51:09 -0600, Brian Paul <brianp at vmware.com> wrote:
> On 09/29/2011 04:40 PM, Eric Anholt wrote:
> Just a minor stylistic comment on the above code.  I'd prefer it to be:
> 
>   if (target == GL_TEXTURE_1D_ARRAY) {
>      /* 1D array code here */
>   }
>   else {
>      /* other target code here */
>   }
> 
> Maybe it's just me, but I find code easier to read when conditionals 
> are structured like that.

That's something I'm ambivalent about, so I'll adopt someone else's
preference.
-------------- 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/20111003/ade524a6/attachment.pgp>


More information about the mesa-dev mailing list