mesa: Check for framebuffer completeness before looking at the rb.
authorEric Anholt <eric@anholt.net>
Mon, 14 May 2012 17:18:23 +0000 (10:18 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 17 May 2012 17:05:24 +0000 (10:05 -0700)
commit5a827d9a2b5d698fed98a5d62ff0292b48bdd6c7
tree59c0e698007f6aa756ec57528afac6b29bf71bb8
parent8b7ba92605c0f21cf6292a1bc2e16e379c0b3be8
mesa: Check for framebuffer completeness before looking at the rb.

Otherwise, an incomplete framebuffer could have a NULL
_ColorReadBuffer and we'd deref that.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/readpix.c