glsl: check for forced_language_version in is_version()
authorBrian Paul <brianp@vmware.com>
Wed, 1 Apr 2015 20:36:09 +0000 (14:36 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 8 Apr 2015 23:03:16 +0000 (17:03 -0600)
commit09e7e2016b702e2c4b79a2c01e8abc1365b4c422
treebfc7adbe17bc91cf4b4dc0f3a56942c2035a9c44
parent4deca1274c25b80351dbec972b68ab6520a89b31
glsl: check for forced_language_version in is_version()

This is a follow-on fix from the earlier "glsl: allow ForceGLSLVersion
to override #version directives" change.  Since we're not changing
the language_version field, we have to check forced_language_version
here.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser_extras.h