auxiliary: fix util_framebuffer_copy
authorLuca Barbieri <luca@luca-barbieri.com>
Fri, 6 Aug 2010 09:08:45 +0000 (11:08 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Wed, 11 Aug 2010 14:27:57 +0000 (16:27 +0200)
commitdeb809ec98664257ed215e75554e1a80c149c851
treece0b2185e740bb07f87be1434c18484da9baa7fb
parent10ce6779e8a64c33add70e440f885c210f3fa6ee
auxiliary: fix util_framebuffer_copy

util_framebuffer_copy was attempting to copy all elements of the
source framebuffer state.

However, this breaks if the user does not zero initialize the structure.
Instead, only copy the elements up to nr_cbufs, and clear elements up
to dst->nr_cbufs, if the destination was larger than the source.
src/gallium/auxiliary/util/u_framebuffer.c