mesa/main: Prevent sefgault on glGetIntegerv(GL_ATOMIC_COUNTER_BUFFER_BINDING).
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 6 Jun 2014 22:59:18 +0000 (23:59 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 8 Jun 2014 08:43:14 +0000 (09:43 +0100)
commiteb58aa9cf015e79a0fcf2e088676e6aa1d5dabce
treebbd74821468341492341e3f4438376b48d5a45e9
parent8873120f9fb0c82cfd46cd15c39e66c38076cb0d
mesa/main: Prevent sefgault on glGetIntegerv(GL_ATOMIC_COUNTER_BUFFER_BINDING).

A recent ApiTrace change, that tries to dump more buffer state
causes Mesa from my distro (10.1.4) to segfaults here.

I haven't actually confirm this fixes it (I can't repro on master),
but it seems a good idea to be defensive here anyway.

Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/get.c