mesa: add switch case for GL 2.0 in _mesa_compute_version()
authorBrian Paul <brianp@vmware.com>
Thu, 2 Aug 2018 15:32:58 +0000 (09:32 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 Aug 2018 19:20:00 +0000 (13:20 -0600)
commit977638006b8ed280969964e5d53728912c690e32
treeb59800ab65bdbd89b2517c134fc307a3d7013e8d
parent2d4d139877c0aa8efc323be6d9c37c846c8b193a
mesa: add switch case for GL 2.0 in _mesa_compute_version()

Previously, I added a switch case for GL 2.1 (ed7a0770b881791dd697f3).
I don't know of any driver which only supports GL 2.0, but adding
this switch case avoids a failure if the app queries
GL_SHADING_LANGUAGE_VERSION.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/version.c