glcpp: Add a flag to the parser state to indicate GLES.
authorCarl Worth <cworth@cworth.org>
Mon, 26 Nov 2012 22:53:54 +0000 (14:53 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 11 Jan 2013 18:57:25 +0000 (10:57 -0800)
commit77e1bc9f1db315c68d6fd8c1441a678d33ca4db2
tree63569968a639509f3c187e1a31dcf25a8e76ca60
parent100440d1b1e5a73417ccff33ec98200d587421cf
glcpp: Add a flag to the parser state to indicate GLES.

This can be triggered either by creation of a GLES context (with
api == API_OPENGLES2) or else by a #version directive with version
value 100 or with a string of "es" following the version value.

There's no behavioral change with this commit—just preparation for ES-specific
behavior in the preprocessor in the future.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glcpp/glcpp-parse.y
src/glsl/glcpp/glcpp.h