main: return two minor digits for ES shading language version
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 26 Nov 2014 12:16:38 +0000 (13:16 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 9 Dec 2014 10:40:00 +0000 (11:40 +0100)
commit6cc72511850961eba408a44f648c7067b6e68594
tree4bb25075f8591daf995600885f77f561f79e99bc
parent426a50e2089b12d33f5c075aa5622f64076914a3
main: return two minor digits for ES shading language version

For OpenGL ES 3.0 spec, the minor number for SHADING_LANGUAGE_VERSION is always
two digits, matching the OpenGL ES Shading Language Specification release
number. For example, this query might return the string "3.00".

This patch fixes the following dEQP test:

   dEQP-GLES3.functional.state_query.string.shading_language_version

No piglit regression observed.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/getstring.c