diff options
author | Brian Paul <[email protected]> | 2008-08-04 10:07:26 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-08-04 17:14:48 -0600 |
commit | 7c59a2b5a2699207e25638ff5be6b9cfd64560cc (patch) | |
tree | 5ac0a08240f6da6979c187885862a827b43fa9f1 /src/mesa/shader/slang/slang_preprocess.c | |
parent | d95bb24ddc9fa4bfb32d07fb96d19c024f0e52cf (diff) |
mesa: glsl: only allow one #version directive
Diffstat (limited to 'src/mesa/shader/slang/slang_preprocess.c')
-rw-r--r-- | src/mesa/shader/slang/slang_preprocess.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_preprocess.c b/src/mesa/shader/slang/slang_preprocess.c index bfe29b6bc98..786f6467c93 100644 --- a/src/mesa/shader/slang/slang_preprocess.c +++ b/src/mesa/shader/slang/slang_preprocess.c @@ -537,7 +537,11 @@ pp_state_init (pp_state *self, slang_info_log *elog) { self->line = 0; self->file = 1; +#if FEATURE_es2_glsl + self->version = 100; +#else self->version = 110; +#endif pp_symbols_init (&self->symbols); pp_ext_init (&self->ext); self->elog = elog; |