mesa: add switch case for GL 2.1 in _mesa_compute_version()
authorBrian Paul <brianp@vmware.com>
Fri, 27 Jul 2018 18:58:35 +0000 (12:58 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 28 Jul 2018 03:21:24 +0000 (21:21 -0600)
commitce0f42dfe46cd9a9ae63dd09dd45b2e7f660d001
tree6d2b46e0851586bca08c7e8350e8716ce3db14fa
parent4f51e8880d1c0ba072f9f7a10f955ad79c30e991
mesa: add switch case for GL 2.1 in _mesa_compute_version()

The xlib/swrast driver only supports GL 2.1.  This patch fixes a
crash if the app calls glGetString(GL_SHADING_LANGUAGE_VERSION).

Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/mesa/main/version.c