Support multiple default versions, to enable ES vs. desktop contexts, for shaders missing a #version statement.

This also moved some parseContext code from the flex file to the proper C++ file.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20501 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-02-06 23:06:52 +00:00
parent c435c71d87
commit 46eaf4939e
5 changed files with 79 additions and 64 deletions

View file

@ -154,7 +154,8 @@ SH_IMPORT_EXPORT int ShCompile(
const int numStrings,
const EShOptimizationLevel,
const TBuiltInResource *resources,
int debugOptions
int debugOptions,
int defaultVersion = 110 // use 100 for ES environment
);