mesa: fix NULL pointer deref bug in _mesa_drawbuffers()
authorBrian Paul <brianp@vmware.com>
Tue, 19 Aug 2014 13:51:07 +0000 (07:51 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 19 Aug 2014 15:29:16 +0000 (09:29 -0600)
commit31ce84a81f7166ded07e9cb41e5dfe212dd8fed1
treed9688b34ed272fff9e16f6077f1d29f9616d0a7a
parentdfa10ed2640a350a84e6e31edd22560155cd5016
mesa: fix NULL pointer deref bug in _mesa_drawbuffers()

This is a follow-on fix to commit 39b40ad144.  Fixes a crash if the
user calls glDrawBuffers(0, NULL).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82814
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/buffers.c