meta/copy_image: use precomputed dst_internal_format to avoid segfault
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 17 Feb 2016 17:28:04 +0000 (12:28 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 19 Feb 2016 18:10:28 +0000 (13:10 -0500)
commitb697400a97d3137ff87560ebd2c41207b98cd61a
treebb2ccbface462408b768b2475459f3cebdf9ca9f
parenta03d6f2aa3bb589ca61c3cc13c4189a973b3a2c1
meta/copy_image: use precomputed dst_internal_format to avoid segfault

If the destination is a renderbuffer, dst_tex_image will be NULL. This
fixes the *to_renderbuffer dEQP copy image tests.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/common/meta_copy_image.c