mesa: check for dummy renderbuffer in _mesa_FramebufferRenderbufferEXT()
authorBrian Paul <brianp@vmware.com>
Thu, 13 Jan 2011 01:14:14 +0000 (18:14 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Jan 2011 01:14:18 +0000 (18:14 -0700)
commitdd973cd9e81abf1c0bc1880c7905f3277d4361a0
treea06e3e94add60be0aeaf55e2432f3e8525e9c0cb
parent67722ae403526d8b267e29ed2ac962b806001ce5
mesa: check for dummy renderbuffer in _mesa_FramebufferRenderbufferEXT()

Fixes a failed assertion when a renderbuffer ID that was gen'd but not
previously bound was passed to glFramebufferRenderbuffer().  Generate
the same error that NVIDIA does.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/mesa/main/fbobject.c