swrast: check for null/-1 when mapping renderbuffers
authorBrian Paul <brianp@vmware.com>
Mon, 20 Jan 2014 16:06:35 +0000 (08:06 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 20 Jan 2014 16:18:21 +0000 (08:18 -0800)
commit799abb271a248f646faa5cc859968f8c71e1ef16
tree3231c3d51cb899e691dc9fb5a5b8c39175109bdc
parent3ede8dd5f1096531a080bac6f17f2512bea7bbce
swrast: check for null/-1 when mapping renderbuffers

Fixes fbo-drawbuffers-none crash (but test still fails).
https://bugs.freedesktop.org/show_bug.cgi?id=73757

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/swrast/s_renderbuffer.c