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)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:46:40 +0000 (18:46 +0100)
commitd32aff91c1c42b3f8bfb6c4109a8ea79c1f46d8d
tree37258a39980bd69e25fef1aa19861d2f18e862ce
parentd4fc90c129389de2b5ac6e2ac1561cca7e1f1185
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.
(cherry picked from commit a4311054c78536acba0c3006c5d2805e182fa483)
src/mesa/state_tracker/st_cb_fbo.c