mesa: consolidate _mesa_source/dest_buffer_exists()
authorBrian Paul <brianp@vmware.com>
Thu, 13 Oct 2011 13:37:43 +0000 (07:37 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Oct 2011 13:37:43 +0000 (07:37 -0600)
commite5fef34c2132e29b6cecfda525dfa956c4477d75
tree240b3259618cc12691959774a9da526c8de68763
parentf1f7645f23bd11fb54a992cdbe9ef0a6ee0136f3
mesa: consolidate _mesa_source/dest_buffer_exists()

v2: add a 'reading' parameter to distinguish between reading and writing
to the renderbuffer (we don't want to check if _ColorReadBuffer is null
when we're about to draw).  Eric found this mistake.
src/mesa/main/framebuffer.c