st/mesa: add null pointer check in st_renderbuffer_delete()
authorBrian Paul <brianp@vmware.com>
Mon, 3 Dec 2012 15:30:04 +0000 (08:30 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Dec 2012 18:30:42 +0000 (11:30 -0700)
commita4311054c78536acba0c3006c5d2805e182fa483
tree768f77c5e02c191adf40de2672ec98f7e049f74a
parentc6d74bfaf61a6d52e6f886e33f2e98c3007d79fc
st/mesa: add null pointer check in st_renderbuffer_delete()

In my testing I haven't found any cases where we get a null context
pointer, but it might still be possible.  Check for null just to be safe.

Note: This is a candidate for the stable branches.
src/mesa/state_tracker/st_cb_fbo.c