commit | 7dcfc44b72f00ba5a38cb02123c80113440f0de9 | [log] [tgz] |
---|---|---|
author | Kenneth Graunke <kenneth@whitecape.org> | Sun Sep 05 01:27:02 2010 -0700 |
committer | Kenneth Graunke <kenneth@whitecape.org> | Tue Sep 07 17:30:37 2010 -0700 |
tree | cb119dea4be95f12bab48bddf6f21cfd9ed9592b | |
parent | 719caa403ecc3345b86708f8172600d80132d6cb [diff] [blame] |
glsl: Define GL_ES preprocessor macro if API is OpenGL ES 2.0. Also define it if #version 100 is encountered.
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 30f11a5..2323a20 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp
@@ -130,7 +130,7 @@ const char *source = shader->Source; state->error = preprocess(state, &source, &state->info_log, - state->extensions); + state->extensions, API_OPENGL); if (!state->error) { _mesa_glsl_lexer_ctor(state, source);