glcpp: Resolve implicit GLSL version to 100 if the API is ES.
authorMatt Turner <mattst88@gmail.com>
Mon, 27 Jan 2014 02:06:18 +0000 (18:06 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 28 Jan 2014 05:15:35 +0000 (21:15 -0800)
commitc59a605c70752b584a05bc6f129a1aa894c861ce
treec45e47947a49927eafea71be8dd98bb77eaf3e8a
parent3e0e9e3bf9e597eb74b06381b3418c958be4d452
glcpp: Resolve implicit GLSL version to 100 if the API is ES.

Fixes a regression since b2d1c579 where ES shaders without a #version
declaration would fail to compile if their precision declaration was
wrapped in the standard #ifdef GL_ES check.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74066
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glcpp/glcpp-parse.y
src/glsl/glcpp/glcpp.c
src/glsl/glcpp/glcpp.h
src/glsl/glcpp/pp.c